PDA

View Full Version : stopping


bigRED NI
10-28-2009, 12:01 PM
Hi Guys need help, and theres probably a simple solution but i dont know.

I have an object travel at a constant speed across the stage area from left to right, How do i stop it at the Right side of the stage??

mark2222
10-28-2009, 12:22 PM
It depends on how you are making that object travel at a constant speed across the stage...

bigRED NI
10-29-2009, 09:01 AM
basically the code is along the lines of

speed = 5
speed=speed;
ball.x=ball.x+speed

to make the ball go across the x axis. if that helps??