Highlighted

Using "Move with Keyboard Arrows" in multiple scenes creates conflicts.

New Here ,
Apr 20, 2019

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.

Screen Shot 2019-04-20 at 15.12.18.pngScreen Shot 2019-04-20 at 15.12.41.png

Any thoughts on what I'm doing wrong?

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

to restate, don't do this:

var whatever = ...

in one frame/scene/line, and

var whatever = ...

on another frame/scene/line

TOPICS
Discussions

Views

295

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Using "Move with Keyboard Arrows" in multiple scenes creates conflicts.

New Here ,
Apr 20, 2019

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.

Screen Shot 2019-04-20 at 15.12.18.pngScreen Shot 2019-04-20 at 15.12.41.png

Any thoughts on what I'm doing wrong?

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

to restate, don't do this:

var whatever = ...

in one frame/scene/line, and

var whatever = ...

on another frame/scene/line

TOPICS
Discussions

Views

296

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 20, 2019 0
Adobe Community Professional ,
Apr 20, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 20, 2019 0
New Here ,
Apr 20, 2019

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 20, 2019 0
Adobe Community Professional ,
Apr 21, 2019

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 21, 2019 0