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 / Sprite Collision Using Arrays?

Author
Message
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 11th Jul 2008 21:36 Edited at: 11th Jul 2008 21:42
Hey guys, I thought it would make my life alot easier if I just made an array to determine Sprite Collision. But I can't seem to figure out how to make the code to determine for every sprite that colides.
I want to be able to make a platformer (perhaps just that, no enemies or anything) but I want to be able to use a code to determine that each pixel I stick on screen cannot be colided into. If you could just make it so Sprite Colision() Included all sprites, that would be apreciated.
Tell me if you need to see the code to understand what I'm saying.
Thanks again.
-Irojo


[EDIT]
I have used the search, and checked TDK's Tutorials.

I urge you to watch the film "Who killed the electric car". Support electric cars! Did you know their used to be more electric cars then gassoline cars?
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 11th Jul 2008 22:04
Search around in the Code Snippets there was ultimate sprite collision or something like that in there a long time back.

When Chuck Norris goes to a gas station, he doesn't pay them $4.09 a gallon, they pay him $4.09 a gallon.
Irojo
18
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 11th Jul 2008 22:30
Thanks, but no results.

I urge you to watch the film "Who killed the electric car". Support electric cars! Did you know their used to be more electric cars then gassoline cars?
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 11th Jul 2008 22:34 Edited at: 11th Jul 2008 22:43
[EDIT]

Never mind

When Chuck Norris goes to a gas station, he doesn't pay them $4.09 a gallon, they pay him $4.09 a gallon.

Login to post a reply

Server time is: 2026-07-06 10:01:15
Your offset time is: 2026-07-06 10:01:15