Error running script: Error compiling expression 'dirright': Unknown object or variable 'dirright'
jaynabonne wrote:You probably need something like "guard.dirright". Without an object as reference, something like "dirright" would be a local variable in the script, which you would not have defined.
jaynabonne wrote:Would you be able to post your game? (as an attachment). That would make it easiest, if you don't mind sharing
jaynabonne wrote:For some reason, when it's doing the "set"s, it's not putting the attribute in quotes. So you're getting:
set (Guard, dirright, 0)
which makes it look for a variable named "dirright" to take the value of for the attribute. It should be coming out like
set (Guard, "dirright", 0)
In your set statements above, trying putting the attribute in quotes, like "dirright" instead of just the word dirright. See if it lets you do that. I don't use the gui script editor very much, so I don't know its nuances.
(Man, it's hard to talk about quotes unambiguously when you're also quoting things. )