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.

2D All the way! / Sprite collisions

Author
Message
C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 10th Dec 2006 12:29
I'm probably being really dumb or something, but how the heck to you make one sprite "not" go through another 1 when they collide.

I've been trying ever since i got DBP to make decent collisions but they just don't work.

My current project uses a world built from an array, the character, moves in 16 or 32 blocks (depending on what I have it as when i test it) and it collides with "all" the sprites around it. Yeh, thats great, except it goes through the half of them, because my collision testing and movement stoppage, is too complicated.

How can I make a simple "blocked" movement game, with real time collisions???????


http://www.soharix.homestead.com/
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Dec 2006 13:33
If it's built from an array you don't really have to use sprite collision checks to stop movement... just look at the players location in the array to block movement.

Post some code and media so it's easier to help.

Login to post a reply

Server time is: 2026-07-04 23:26:40
Your offset time is: 2026-07-04 23:26:40