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.

Code Snippets / Simple 2D tile scroller

Author
Message
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 4th Feb 2003 08:50
I just want to show how 2D tile scroller should be done.
I think that when beginners make rpg they all stop in this problem, like i somewere in history.

Very simple, heh
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 4th Feb 2003 08:56
Why the hell it erases some of my code... whatever.
if x90 then x=90
if y90 then y=90
should be...
if x<10 then x=10
if x>90 then x=90
if y<10 then y=10
if y>90 then y=90

Stevo
21
Years of Service
User Offline
Joined: 4th Oct 2002
Location:
Posted: 8th Feb 2003 02:16
thats good code bluedeep

Red general
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 9th Feb 2003 13:20
as this is 2D, surly the bigger it is, the slower it becomes. I found taht if you look down straight onto a matrix, and have it scroll along with your sprites, then it is much faster.

My computer melts regulary - perhaps it likes being fondue
Bluedeep
21
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Finland
Posted: 3rd Mar 2003 09:51
That was only an simple example, when u use sprites, u can make big 10x10 screen with multiple layers without fast pc.

Login to post a reply

Server time is: 2024-04-26 14:08:55
Your offset time is: 2024-04-26 14:08:55