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.

Dark GDK / Scrolling the tile map

Author
Message
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 20th Jun 2008 03:24 Edited at: 20th Jun 2008 03:25
I'm sure I'll end up feeling stupid for asking this ( because the solution is probably obvious ), but I'm having trouble with the tile map I have created. Drawing the 2D map at ( x, y ) position works fine. But, I'm having trouble with scrolling the map. When I call the second command below, it runs a never ending loop and crashes. What should I do differently?



EDIT: The speed parameter for scroll_map is for future usage. I hope to use that variable to control the speed of animation. I'm not really sure how to at the moment.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 20th Jun 2008 03:34
I just realized that I should probably make the x and y scrolling separate, not connected. I'm working on doing so right now.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 20th Jun 2008 03:48
Alright, fixed it. Replacing scroll_map with this worked:



Man, do I need more practice at this. Sorry to bother any of you.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 21st Jun 2008 02:50
Don't be so hard on yourself, I'm too stupid to come up with something like that.

If you can do any models for FW, reply to the FleetWars thread.

Click here!

Login to post a reply

Server time is: 2024-11-20 13:26:16
Your offset time is: 2024-11-20 13:26:16