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.

Newcomers DBPro Corner / Pixel collision detection (newbie)

Author
Message
ManiacBR
17
Years of Service
User Offline
Joined: 26th Oct 2006
Location:
Posted: 27th Oct 2006 01:12
Ok, I have two pixles on the screen, which I can move about, but I can't get them to top when they hit each other. I've tried looking at other examples, but they mostly just confused me more.

Here's the code I use to disply the sprites



The currentimage part is just saying which one of the 8 images is shown of the tank (which is what im using). One for every direction.

So can anyone help me to stop the tanks going over each other? Please keep it as simple as possible.
Trinita
20
Years of Service
User Offline
Joined: 29th Sep 2003
Location: Italy
Posted: 31st Oct 2006 11:57
I personally didn't understand what you want to do;paste your complete code with media and try to explain better.

"An eye for an eye will only make the whole world blind."
C0wbox
18
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 31st Oct 2006 15:30
I may be able to help.

I've done pixel collisions using the DOT command and had some sucess.

But if your using pixels why in your source is there mention of sprites?

This confuses me.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 31st Oct 2006 23:23
Pixel collision probably isn't what you need. With "sprite collision" you don't have to check individual pixels so it's much faster to use (although not as accurate).

Login to post a reply

Server time is: 2024-09-25 11:29:37
Your offset time is: 2024-09-25 11:29:37