the game i am making is the counterpart of a game that bog boy is also making.
the idea is to throw bombs at each other over a set of buildings.
here is the code i am using for the physics... its full of rems to make sure u all know what im doin
the problem is with the 'until j=>800...' line - it tells me 'BOB does not exist' for that line
rem start
PhysicsP1: is the label from a previous gosub command so there is a return at the end of this section
d is the velocity the player types in for the ball
e is the angle the player types in for the ball
h is the horizontal component of the ball's speed
i is the vertical component of the ball's speed
j and k are the ball's coordinates on the screen at any given time
a is the y coordinate of the person throwing the ball
remend
PhysicsP1:
h=d*cos(e)
i=d*sin(e)
j=101
k=a-30
sprite 11,j,k,11
repeat
k=k-i
i=i-c
j=j+h
sprite 11,j,k,11
until j=>800 or sprite collision(11,1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9)=1
return
hope someone can give me a hand to stop it telling me 'BOB does not exist' on the 'until j=>800...' line
if it works... DONT FIX IT!!!
just tweak it a bit around the edges till it dont work... THEN fix it!!!
-my BASIC programming motto