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 problem

Author
Message
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 5th Oct 2007 19:57 Edited at: 5th Oct 2007 21:40
I'm doing a little top-down moving-around style thing just because I want to learn how to use sprites, but I can't get the collision to work right; the bloke can just go into the wall and then he'll stop like he's supposed to, but he tends to go quite far in before it detects the collision and I don't think he can figure out how to get back out. He's not really very clever, to be honest (but don't tell him - it'll hurt his feelings)

Basically, the sprite just keeps getting stuck on the walls. But that would be boring to say.





the image I'm loading is just a 128*128 picture with 16 32*32 pictures of the guy walking in different directions. I've been looking at this for hours now without getting anywhere (although I'm hardly concentrating... trying to give up smoking again today and i suck at it)




EDIT: never mind i think it's the image - when I turn him round the slight offset from the center of the sprite means that he actually goes further onto the wall when he turns round.

http://jamesmason01.googlepages.com/index.htm

Login to post a reply

Server time is: 2025-05-31 21:27:31
Your offset time is: 2025-05-31 21:27:31