It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming Java Forum

Moving problem

Moving problem

Postby david.brown on Thu Dec 04, 2008 7:08 am

hello,

I am trying to make 2 circles (MC) move with the LEFT arrow after I click on one of them (selecting witch to move)(ex.clic ball1 move it with the key, then click ball2 and move it..). But I can move only one circle, the other it doesn't respond when I click on it. Can you help me with this?
---------ball1
on (press){ sel=1; } on (keyPress "<Left>"){ if(sel==1) this._x = this._x -5 }
---------ball2
on (press){ sel=2; } on (keyPress "<Left>"){ if(sel==2) this._x = this._x -5 }
------------first frame
sel=0
Reply With Quote
Thanks
-----------------------------------------
http://www.infysolutions.com
Outsourcing software development
david.brown
 
Posts: 0
Joined: Thu Dec 04, 2008 7:01 am

Who is online

Users browsing this forum: No registered users and 1 guest