[codebox]{
if ball.x > room_width/2 {
if ball.x < x
{
x -= 2;
}
if ball.y >= x
{
x+=2;
}
{
if ball.y < y
{
vspeed-=8
}
}
}
}[/codebox]
I also have a gravity code in the Step event. I know the problem with this code, it just keeps telling it to go higher and higher because the ball is close to it, but how do I fix it?
--Thanks
Edited by Petro, 12 June 2008 - 05:02 PM.











