Copy link to clipboard
Copied
Hi,
I want to use the "Move with Keyboard Arrows" to move a different thing in each different scene.
it works fine if I only have the code in one scene. But as soon as I add the code to another scene I get errors.
Any thoughts on what I'm doing wrong?
to restate, don't do this:
var whatever = ...
in one frame/scene/line, and
var whatever = ...
on another frame/scene/line
Copy link to clipboard
Copied
if the boolean upPressed has already be declared in a frame before, 3, don't re-delcare it. eg,
upPressed=false;
likewise for your other variables.
Copy link to clipboard
Copied
Thank you. I'm still working on this, haven't got it to work properly yet...
...maybe I don't fully understand your advice. I'll come back to this one in the morning, kglad​
Copy link to clipboard
Copied
to restate, don't do this:
var whatever = ...
in one frame/scene/line, and
var whatever = ...
on another frame/scene/line
Find more inspiration, events, and resources on the new Adobe Community
Explore Now