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! / Parallax scrolling shooter problem

Author
Message
Yossarian
21
Years of Service
User Offline
Joined: 21st Jul 2004
Location:
Posted: 22nd Jul 2004 05:28
Im trying to make a metal slug style shooter. I am wondering the best way to make the looping bitmap background scroll when the player moves near the edge of the screen, could i do it by moving the camera?

cheers
Yossarian
21
Years of Service
User Offline
Joined: 21st Jul 2004
Location:
Posted: 22nd Jul 2004 05:38
this needs to be done in DBC
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 22nd Jul 2004 06:23
You could move the camera if you texture plains with the bitmap images.

glint
22
Years of Service
User Offline
Joined: 9th Feb 2004
Location: the Synth
Posted: 23rd Jul 2004 03:31
Just position plains so that they fill up the whole screen. (Use camera fov/trig to figure out how large the plains will be and how far from the camera.) Texture each with its bitmap.

When the player moves, don't bother moving the camera. Just scroll the textures on the plains at different rates, depending on how far away they are supposed to look.

If other elements in your game require camera movement to work, lock the above-described plains ("lock object on") to make sure that camera movement has no effect on them.

I am currently making a "2-d" shooter that uses 3-d material, and this is the plan I was using for parallax scrolling.

Login to post a reply

Server time is: 2026-06-11 14:47:39
Your offset time is: 2026-06-11 14:47:39