This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-10-31 14:16:18

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Need a scrolling expert for this tricky-complicated problem.

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)


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#2 2011-10-31 19:04:12

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Need a scrolling expert for this tricky-complicated problem.

Please!!!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#3 2011-10-31 19:38:03

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Need a scrolling expert for this tricky-complicated problem.

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  hmm


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2011-11-01 12:04:01

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Need a scrolling expert for this tricky-complicated problem.

kk... might come in handy!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

Board footer