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! / background

Author
Message
AluminumPork
20
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 4th Nov 2003 06:43
i know this question has come up alot, but how can i scroll a simple bmp across the screen as a background. The bmp file will be very long and 480 pixels in height. The game is a 2d side scroller. From right to left. I know nothing about doing this. Thx. I'm in DB, not DB pro
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 4th Nov 2003 08:37
The way I'd do it, is by loading the image and applying that as a texture on a large plain. Then I'd simply scroll the texture or I could move the plain back and forth. Hope this helps, I'm not used to working 2D in DB. I'm only in this forum because of my extreme boredome at 4:36 AM...

Morfy's Law - Enythink thet ken go rong willll.
Cole's Law - Thinly sliced cabbage.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 4th Nov 2003 10:56
Yeah..scrolling plains is the best way. Even though I come from a 2D background, and tiled games are a fun coding challenge, 3D is now the new 2D. It is very easy to do once you try it.

Pincho.
AluminumPork
20
Years of Service
User Offline
Joined: 28th Oct 2003
Location: Duluth, MN, USA
Posted: 5th Nov 2003 01:18
okay, i have absolutely no idea where to start with that though... any code examples?
UnderLord
20
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 8th Nov 2003 07:24
rem object plain
make object plain 1,Whatever,value,goes,here,or,what,not
texture object 1,2

load image "image1.bmp",2

that might work maybe i should try it gonna be one big plain hehehe

http://www.freewebs.com/ingamers
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Nov 2003 12:16
Pseudo Code..

Make object Plain..The same size as your screen res 800*600 or whatever.

Load image "Image.bmp",1

Texture plain with Image

Position Plain X,Y,500

Set Camera to Object orientation Plain.



Pincho.

Login to post a reply

Server time is: 2024-05-01 18:25:23
Your offset time is: 2024-05-01 18:25:23