Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / collisions

Author
Message
whipped6
19
Years of Service
User Offline
Joined: 31st Aug 2006
Location:
Posted: 15th Oct 2006 23:13
hello ive ben needing help with this for a while but could someone help me i need to make a pawn hit another pawn and disappear could anybody help with that
here is my code so far



game creator
Bob_42
19
Years of Service
User Offline
Joined: 15th Sep 2006
Location: Guernsey
Posted: 15th Oct 2006 23:22
1. you need to use the image command not the bitmap command
2. you don't need to load the pawn image twice, thats just a waste of memeory
3. you have used exactly the same sprite command three times
4. you need to poistion all the sprites before you think about sprite collision
5. 'sync' is outside the loop and will therefore have no effect

anyway now on to the actual question, you need to check out the sprite collision function

whipped6
19
Years of Service
User Offline
Joined: 31st Aug 2006
Location:
Posted: 16th Oct 2006 03:23
ok i do apoligize because i was to lazy to go back into DBC and get my code so i just made that one lol

game creator

Login to post a reply

Server time is: 2026-07-06 10:39:32
Your offset time is: 2026-07-06 10:39:32