ID:178177
 
I am having trouble figuring out how to make my bowling ball only go upwards a certain ammount of spaces to hit the pins.

obj/Bballs
bball
icon = bowlingball.dmi


this is all i got but I am not sure if I use O.y+15 or what ever......
I don't have the code with me right this second, but this is basically what you need. Rather, it should give you the idea.

obj/Bballs
bball
var/moving = 0
etc.
verb/Bowl()
while(src.moving)
step(src,src.dir)
src.moving += 1

Something like that. Nothing like what you'll need, but do you get what I'm saying?