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! / Scrolling in a 2d platform game?

Author
Message
Blue Shadow
22
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 28th Apr 2004 21:00
I have a few questions about this topic:

1) If you have a large bitmap (1500 * 500 approx) how fast would it be to use the sprite offset command to use this as a background for your main game. The platforms and everything are on this bitmap.

2) Using the above method is it still possible to define collision zones outside ofthe 640 * 480 are and have them scroll with the bitmap. So if the platform was outside of the viewable area and it moved so you could see it wouldthe collision zones move too.

3) If this is not a very good method of scrolling then could anyone suggest a better way of doing it.

Any help would be greatly apreciated,

Michael


Visit the Code Monkey's website at http://www.codemonkeystudios.tk
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 28th Apr 2004 21:32
You could do that in DBPro, but in DB Classic it would be way too slow. The collision is moved by yourself, so all you have to do is figure out how you are going to move it along with the scroll. It should be quite easy really. You should test it on a very simple two screen scroller, and then make that bigger when it works properly.

Blue Shadow
22
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 28th Apr 2004 21:40
Thanks for your help Pincho. Just to clarify something. Are you saying that you work out how much the screen is moving and then just change theposition for the collision zones with it. I think that that shouldn't be too dificult to do.

Thanks for your help,

Michael

PS I am using Pro so it shouldn't be a problem.


Visit the Code Monkey's website at http://www.codemonkeystudios.tk
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 28th Apr 2004 21:44 Edited at: 28th Apr 2004 21:57
You control the collision yourself unless you want to use sprites for the platforms, then collision will be calculated for you. But you will still have to move the sprites yourself, so you are left with a similar problem. Best way is to actually move the camera.

Blue Shadow
22
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 29th Apr 2004 01:05
Ok thanks for your help. I might look into the textured plain method too.

Cheers,

Michael


Visit the Code Monkey's website at http://www.codemonkeystudios.tk

Login to post a reply

Server time is: 2026-06-09 13:56:06
Your offset time is: 2026-06-09 13:56:06