• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Need help triggering next Scene using A Dragged Object

Community Beginner ,
Nov 27, 2017 Nov 27, 2017

Copy link to clipboard

Copied

i'm trying to make a plug have to be moved to a outlet in order for the lightbulbs turn on, which is the next scene. anyone know how to have the dragged object need to be placed on outlet in order to trigger next frame? also if you know how to make the cord itself move like cord? it would help thxs

Views

208

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
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 27, 2017 Nov 27, 2017

making a cord move like a cord may be difficult.  in addition, i don't know how to do that without using code to draw the cord.

to trigger the next scene, label that frame and use a goto in a function called when the plug is dropped in the correct (eg, use a hitTestObject) location.

Votes

Translate

Translate
Community Expert ,
Nov 27, 2017 Nov 27, 2017

Copy link to clipboard

Copied

making a cord move like a cord may be difficult.  in addition, i don't know how to do that without using code to draw the cord.

to trigger the next scene, label that frame and use a goto in a function called when the plug is dropped in the correct (eg, use a hitTestObject) location.

Votes

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
community guidelines
Community Beginner ,
Nov 28, 2017 Nov 28, 2017

Copy link to clipboard

Copied

where would i put the location in the goto coding?

Votes

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
community guidelines
Community Expert ,
Nov 28, 2017 Nov 28, 2017

Copy link to clipboard

Copied

in your stop drag listener function you would use something like:

if(plug.hitTestObject(outlest)){

gotoAndStop('lightson');

}

Votes

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
community guidelines
Community Beginner ,
Nov 29, 2017 Nov 29, 2017

Copy link to clipboard

Copied

Thank you it works perfectly.

Votes

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
community guidelines
Community Expert ,
Nov 29, 2017 Nov 29, 2017

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

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
community guidelines