Hello, I can't do this working and Idk why. For the tinyTVjam I'm making a tiny pinball and I'm trying to get the ball going up, but doesn't respond.
I try everything but the ball still going down.
ball.y+=ball.vely ball.y+=ball.grav --this for tests-- if ball.y>=5 then ball.vely*=-1 end |
That's not a lot to go on. But, I'd expect to see gravity affecting the y velocity, not the y position. Maybe something like:
ball.vely+=ball.grav
ball.y+=ball.vely
[Please log in to post a comment]