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! / Zelda scrolling thingy majiggy

Years of Service
User Offline
Joined: 4th Mar 2003
Location: My Computer
Posted: 8th Mar 2003 13:10
hi im making a zelda type game but ive ran into a problem, does anyone know how to making it so that when you reach the edge of the screen the screen moves across and shows the next part.
i was thinking of using a big bitmap and just moving it across like: if x>400 then xpos=xpos-400.
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 8th Mar 2003 19:43
this is over simplified but if you can make a zelda style game you should be able to expand on this

Years of Service
User Offline
Joined: 8th Mar 2003
Location: United Kingdom
Posted: 8th Mar 2003 21:34
Maybe a sprite around the edge, it asks (if..then) what direction you are facing and if you hit the sprite when facing right it goes to the screen on your right. The sprite is a screen sized white box with a black middle 0,0,0
rgb not anything else

Howdy Fools
Red general
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 9th Mar 2003 14:42
you coudl ahve it so that you have a matrix for a background and your camera scroll along. Then have your sprites scroll a long at the same rate. This was what I did for my zelda


My computer melts regulary - perhaps it likes being fondue
Mr Man
Years of Service
User Offline
Joined: 10th Mar 2003
Location: United States
Posted: 13th Mar 2003 07:47
The only problem with that method, is it's not a true zelda clone that way.

Coder. Gamer. All around good guy.
Years of Service
User Offline
Joined: 30th Mar 2003
Posted: 13th Apr 2003 10:57 Edited at: 13th Apr 2003 11:02
Well, I'm working an a scrolling world game myself and maybe I can help a little. Basiclly what you would want to do is make a tile map to scroll. If you where going to do it traditional game like I'm trying to do. How you would load a data map from file is something I'm trying to learn now. However, this is what you would need to do.

note: This is code from a qbasic guide I found for scrolling. I just didn't want to type out a map.

'The map file... 30 x 15

DATA 3,3,3,3,3,3,3,3,3,3,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
DATA 3,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3
DATA 3,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3
DATA 3,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,2,3,2,2,2,2,2,2,2,3,3
DATA 3,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,3,2,2,2,2,2,2,2,3,3
DATA 3,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,2,3,2,2,2,2,2,2,2,3,3
DATA 2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,2,1,2,2,1,2,2,2,2,3,3
DATA 2,2,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,2,2,2,2,1,1,2,2,2,2,2,3,3
DATA 2,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,2,2,2,2,1,1,2,2,3,2,2,3,3
DATA 3,1,1,1,1,1,2,2,2,2,2,2,1,1,1,1,1,1,1,2,3,2,2,2,3,1,3,2,3,3
DATA 3,1,1,1,1,1,1,1,2,2,1,1,1,1,1,1,1,1,1,2,3,2,2,2,2,3,2,2,3,3
DATA 3,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,2,2,2,2,2,2,2,3,3
DATA 3,1,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,3,2,2,2,2,2,2,2,3,3
DATA 3,1,1,1,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,3,3,2,2,2,2,2,2,2,3,3
DATA 3,3,3,3,3,3,3,2,2,2,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3

After get your map or find a program that will help create your data map. In qbasic revolutionary guide, it has a nice example of this.

Now what you would do is paste your images on the set number of the map and then setup your keys to scroll that map. The only problem is you will have to add a collision for when you reach the end of data. If you don't set the scroll to stop/collision, then you would get an error message saying data out of range etc.

Note: this data was used to show how you would scroll left to right. If anyone one needs some code examples. I've found a few that might be able to help.

P.S. I'm just learning myself so, I'm just trying to share what I learn as I pick it up. I'm not trying to teach anyone how to do it untill I get it all down myself. However, I do know this is a good starting point for the world. If anyone would like to also share what they learn etc. Feel free to email me at I do know animation, because I've been drawing since I was in 2nd grade and I went to school for computer animation. So, if anyone needs help with that issue, I can help

When the dark angel come's a knocking, don't be shy, let'm in.

Login to post a reply

Server time is: 2023-09-30 00:39:59
Your offset time is: 2023-09-30 00:39:59