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 / Collision detection...

Author
Message
Mezzle
20
Years of Service
User Offline
Joined: 15th Nov 2004
Location:
Posted: 29th Nov 2004 23:40
I'm simply wanting to be able to make a side scrolling platformer. I have not made the scrolling part yet, i'm first of all wanting to be able to make objects which my character can walk along.

I know I haven't done a lot but I really can't find much help at all for 2D games. How do I make my main character (being bloke.bmp) be able to collide with for example the line I have drawn?

Cheers
Dodo
20
Years of Service
User Offline
Joined: 8th Aug 2004
Location: eating lunch
Posted: 30th Nov 2004 03:05 Edited at: 30th Nov 2004 03:05
well, its a lot easier if you make the line into a sprite, and then you can use sprite collision commands. Look into the create/delete bitmap commands and the sprite collision commands.

using just the line would require you to work out where the line was and see if any of the sprites were touching it. this is quite complicated, so I would recommend just using sprites.

Part of solving the problem is actually noticing that the problem is there in the first place

Mezzle
20
Years of Service
User Offline
Joined: 15th Nov 2004
Location:
Posted: 30th Nov 2004 18:58
Thanks, i've set that up, but i'm still not too sure what code I should use (roughly).

Cheers.

Login to post a reply

Server time is: 2024-11-27 16:29:32
Your offset time is: 2024-11-27 16:29:32