Pages: 1
Topic closed
I am making a scrolling city game. It MUST be scrolling.
Here's what I need:
+ I saw what this scratcher had made and wondered if I could incorporate this into my own, however I would need it to work with a scrolling background. You see the build mode could work fine as a still image, but the view mode would have to be scrolling or there is no point me making a city game at all because that is my passion.
Last edited by Borrego6165 (2011-10-31 19:04:04)
Offline
Please!!!
Offline
I'd make sprites with a birds-eye view for each of the building-types and have those set to cycle the screen based on a universal x and y variable. Scrolling with a limited number of spritse (say, 12?) would run faster than with, say 225 sprites for a 15x15 grid. Reusing the same sprites can be tricky, but the actual formula can vary depending on sprite size of the blocks. The basis is that the "real X coordinate" of a sprite is equal to (X+adjusting number % 480), or something like that. This is an interesting idea. I'd love to check my math for you, but I'm running short on time right now, sorry
Offline
kk... might come in handy!
Offline
Topic closed
Pages: 1