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! / top down scrolling....how to?!?!?!?

Author
Message
UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 21st May 2004 17:42
OK i need a way to make my top down space game scroll. For the time being for stars i am using a for-next loop to make white little dots so there is no images for the background just the original blackness and dots and a spaceship that moves (obviously) hehe so anyone know how to get STARTED on scrolling? all 8 directions....

anyone? i have no idea how to start on scrolling....

The search continues.

Current project - A space game
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 21st May 2004 18:09
Most arcade level designs involve scrolling the UV coordinates of tiles. You can also make a 'mega tile' larger than the screen and try scrolling that. I don't know what the performance would be like since I have not tried it.

Try creating a large plain object and texturing that. Make it larger that the visible screen area. Then, use this command every time you move:

SCROLL OBJECT TEXTURE

This command will scroll the UV data of the specified object. The UV data controls how a texture is mapped onto your object. By scrolling the UV data, you can effectively scroll the texture over your object. The U value controls the horizontal shift of the data. The V value controls the vertical shift of the data. The scroll effect is permanent.

SYNTAX
SCROLL OBJECT TEXTURE Object Number, X, Y

--
TAZ

History did not begin with PONG. -- Greg Costikyan

Game Beavers
UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 21st May 2004 18:14
hmmm that might work =) not exactly what im looking for but it might work hehe....

The search continues.

Current project - A space game
Dennuz666 v2
22
Years of Service
User Offline
Joined: 21st Jan 2004
Location: Netherlands
Posted: 21st May 2004 19:57
Never tried it, but just a thought and theorie (remembered from the Amiga-ages). Create tiles and fill a screen with them. Scroll the screen and when the bottom tiles aren't visible anymore paste some new at the outside top screen and continue scrolling. This way you can have unlimited levels. It's like one huge puzzle.

UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 21st May 2004 20:59
Well im having one huge world =) or should i say universe im gonna release the code for it once i get scrolling and shooting down think of it as a jump start for people who can't do the work themselfs...then i'll just build off my work until i have a real game hehe.

The search continues.

Current project - A space game
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st May 2004 21:21
Take a look at my example tiling code from the CodeBase : http://developer.thegamecreators.com/?m=codebase_view&i=dc2f1b35292009ad54b84331daee10ef

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 21st May 2004 21:49
hmm nice =)

The search continues.

Current project - A space game
UnderLord
22
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 22nd May 2004 20:04
BTW zircher thats for scrolling objectsl ike in a 3d world for a sphere you might do that to make it look like the sky is moving but for 2d its totally diffrent...i guess it'd have to be scroll backdrop heh...

The search continues.

Current project - A space game

Login to post a reply

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