July 08, 2020, 11:21:55 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
   Home   Help Search Login Register  
Pages: [1]
Author Topic: collion data  (Read 1296 times)
Been there, done that
Posts: 1087

« on: July 24, 2005, 03:58:19 AM »

how the heck do you do collision dectection and collision data for maps? i get the basic idea of having a set of points for some object and another and checking if they are the same vaules. how would take some BMP map and set collision data to it so object dont go throught it.
I hold this place together
Posts: 923

« Reply #1 on: July 24, 2005, 12:39:24 PM »

this topic has been beaten over and over again, but anyways....

my best suggestion would be to outline all objects that you cannot pass with a colour you won't use anywhere else, and if the tile has that colour in it, you won't be able to go there.

otherwise, you could use a "layer" system, where the visual map layer is your regulay map,  The second layer is filled of 0s and 1s : 0s mean nothing, 1s mean "no passing"
this method is more consuming, but it does the job

Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!