
-----------------------------------
sk8boarder1414
Wed May 07, 2008 10:22 am

Trouble with Collision in Program
-----------------------------------
Too long of a program to paste on the forum but I posted it on rafb.net at the link below

http://rafb.net/p/vbC06056.html

When you run the program it keeps detecting the user and sending it back in the 3rd box regardless of whether a flame is there or if its a blank white space.  I'm trying to get the user to be sent back when a flame appears on it or when it goes over a flame and if its a blank space they can proceed on to the next.

-----------------------------------
HellblazerX
Wed May 07, 2008 1:23 pm

Re: Trouble with Collision in Program
-----------------------------------
Use a boolean to keep track of whether that flame is there or not.  If the flame isn't there, then don't run the collision detection.

Also, in your code:
if (carX+50 >= check1-3 && carX= check2-3 && carX= check3-3 && carX