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 (DBC)

Author
Message
Ginga
18
Years of Service
User Offline
Joined: 3rd Jul 2006
Location: Dorset, England
Posted: 8th Nov 2006 15:36
Mite get blasted for this post, BUT i'm trying to figure out how to scroll, was following Zens tut, but it aint got this far yet, i've done some research aswell, but it all looked really complex with no explanation to what things were.

So if anyone could explain (in lamens terms) how to achieve this i'll be happy =D

Cheers
wildbill
19
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 8th Nov 2006 18:10
There are lots ot tutorials on this subject in the community, just do a search for more info.

Basically you use a variable like scrollX or scrooly to add to your tile positioning. If you push the upkey, paste the image tile at x+scrollX, y + scrollY.The upkey would increment or degrement the scroll values.
Ginga
18
Years of Service
User Offline
Joined: 3rd Jul 2006
Location: Dorset, England
Posted: 11th Nov 2006 14:04
cheers, managed to figure out how to do it, now all i gotta go is figure out how to work out the array index of a grid thats clicked in.

Login to post a reply

Server time is: 2025-05-16 02:41:22
Your offset time is: 2025-05-16 02:41:22