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 Technique

Author
Message
Dextro
21
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 29th Jan 2007 08:56
Hello.
I'm trying to do the same scrolling Technique used in the NES game "Friday the 13th", where it would scroll a "circular" tile map.
For example, I start in point y, walk to x, and right after x I find myself on y again, like walking in circles.
Any ideas on how to do it?
Have been trying to modify pizzaman's scrolling code, but I cant get it to work.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 29th Jan 2007 19:28
You just keep the starting x and y in temporary variables. When the character gets to where its going reset the current coordinates to the old coordinates using the temporary variables.

Are there any screenshots you can post or links that show exactly what it looks like?

Dextro
21
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 29th Jan 2007 20:42 Edited at: 29th Jan 2007 20:55
That would work if i wanted my sprite to move, but I want my background to move, not my sprite.
To be more specific, I'm looking to do "Circular" scrolling.
To be even more specific, i want to achieve this effect http://files.thegamecreators.com/developer/dbpro/DBPro_Tutorial_1_Screen_Scrolling.zip but using tilemaps instead of sprites.
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 31st Jan 2007 22:12
Ah. Inside the map drawing function you can reset the maps y coordinate when it goes over the maps y coordinate max.

This works in both Classic and Pro:


Login to post a reply

Server time is: 2026-07-05 01:13:22
Your offset time is: 2026-07-05 01:13:22