Flash Drag and Drop game

  • Thread starter Thread starter J.B
  • Start date Start date

J.B

J.B

Soldato
Joined
16 Aug 2006
Posts
5,924
Hi guys, woundering if anyone can help me with a flash game I'm making. Its fairly complicated but for the sake of this lets just assume its a dran'n'drop.

Once all the options have been dragged into the right place how do I get it to move to the next frame, which would say something like "well done"
 
one of the simplest ways is to use an if statement to check that the objects are in their correct places and then for it to move to the next frame.

if (dragObject1._x == ? && dragObject2._x == ? && dragObject3._x == ?){
this.gotoAndStop(frame or scene);
}

you may want to add/change the ._x for a ._y depending on what you're dragging and dropping where.
 
Back
Top Bottom