Collision Barriers (Newbie)

BlitzMax Forums/BlitzMax Beginners Area/Collision Barriers (Newbie)

Arkmon(Posted 2012) [#1]
Hello could someone send me a piece of code that when an image collides with another it stops moving


GfK(Posted 2012) [#2]
Bitches be jelly

You'll probably want to remove that offensive word from your sig, before the moderators see it.


Xin(Posted 2012) [#3]
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.