Collision Barriers (Newbie)
BlitzMax Forums/BlitzMax Beginners Area/Collision Barriers (Newbie)| 
 | ||
| Hello could someone send me a piece of code that when an image collides with another it stops moving | 
| 
 | ||
|  Bitches be jelly  You'll probably want to remove that offensive word from your sig, before the moderators see it. | 
| 
 | ||
| i would suggest you use a variable called colliding that stores the result of imagescollide().   then where ever you move your object have something like this 
       local colliding:int   
       colliding=imagescollide('image data and positions here')
       if (colliding=false) 
       {
               'movement code here'
       }
then you just put that into your update loop. |