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! / 2d tile scrolling system

Author
Message
dax24
22
Years of Service
User Offline
Joined: 2nd Feb 2004
Location:
Posted: 14th Apr 2004 14:42
how would you go about making a scrolling system to display tiles.
trying to make a mario game, have all sprites and collision and player movement sorted, but having trouble with screen scrolling.

can anybody offer me suggestions on where i begin?
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th Apr 2004 15:03
There's a lot of pages about this that you can find on here already.

dax24
22
Years of Service
User Offline
Joined: 2nd Feb 2004
Location:
Posted: 14th Apr 2004 15:25
i have looked through a lot of them and they dont seem to make sence or they are based on a scrolling backdrop rather then the tiles scrolling along.

do you know of one in specific?
3ddd
22
Years of Service
User Offline
Joined: 14th Apr 2004
Location: Orlando, FL
Posted: 14th Apr 2004 18:33
I've also found previous discussions on this topic to be a bit fuzzy. This topic would make for a great sticky!

Anyway, not sure if this helps but... I read on a website that one way to do it is to put all your tiles in a matrix and point a camera at it so that it appears as a top down view. Then you move the matrix when the character moves (as opposed to moving the character). Only move it a little bit at a time (e.g., 1 pixel). Then, once it has moved the width (assuming its a a side-scroller) of your tile size, you shift the matrix. This creates the appearance of smooth movement. If this is wrong then I'm sorry and someone please correct me!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Apr 2004 20:35
There is an example tiling display system in CodeBase : http://developer.thegamecreators.com/?m=codebase_view_code&i=dc2f1b35292009ad54b84331daee10ef

It uses a completely tile-based system - no 3D at all.

*** 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
3ddd
22
Years of Service
User Offline
Joined: 14th Apr 2004
Location: Orlando, FL
Posted: 15th Apr 2004 00:01
Cool, thanks.

I tried to compile under DBP but I get an error: "array size value must be numeric at Line 23"

Is it just me?

Derek
3ddd
22
Years of Service
User Offline
Joined: 14th Apr 2004
Location: Orlando, FL
Posted: 15th Apr 2004 19:58
I forgot to upgrade to the lastest version of DBpro... that fixed it.
Gav_b_uk
22
Years of Service
User Offline
Joined: 18th Mar 2004
Location: Midlands, UK
Posted: 3rd May 2004 19:58
There's also this one which I coded....

[href]http://www.thegamecreators.com/?
m=codebase_view_code&i=e15d61a39b4020d4da8d5fe5c9e61df8[/href]

Login to post a reply

Server time is: 2026-06-09 15:43:38
Your offset time is: 2026-06-09 15:43:38