For a scrolling archipelago, which is best, a big sprite of many islands with lots of transparancy and one set of scripts or many small sprites, one for every island, that all need to have their own movement scripts?
http://scratch.mit.edu/projects/AlveKatt/32539
Thanks.
Offline
AlveKatt: based on what you already have, I would suggest going with the single sprite idea. Just incorporate the islands into your (already, I see) nicely scrolling background. That way, what you want to do requires no more coding than perhaps a slight expansion on what you already have. Hope that helps!
Offline
I don't think you can have a sprite larger than the screen, which makes the question moot - you will probably have to go the many islands route, though some sprites might contain 2 or maybe (if very small) 3 Islands.
Offline
Well, I would need more than one island per size of the screen. Just so you allways have at least one in every dimension on screen, otherwise there would be no reference points to show you that you are really moving.
Offline
Mayhem: it wouldn't need to be larger than the screen, would it? It would just have to be larger than the *cropped* screen Alvekatt created--it would just rest 1 layer back from the edge sprite.
Offline
Sawman3 wrote:
Mayhem: it wouldn't need to be larger than the screen, would it?
If it wasn't it would rather defeat the whol epurpose of scrolling.
If I were you, Alvekatt, I'dd draw out the entire archipeligo as one picture, its height and width an exact multiple of the window size of the scrolling engine. Draw your islands against a single colour, non-detailed background. Slice it into screen-sized sprites (Reiner's Tilecutter is a good program for this) then import these into scratch. Finally, use flood fill to make the sea on the sprites transparent.
Offline
I did read it, and my comment stands. It would be a waste of time to scroll a background that is, in total, no larger than than the screen, since you could just display it full screen with no need for scrolling.
The "frame" or lack of it is irrelevenat to this argument, since it is a purely arbitrary device. If the background behind the frame is no bigger than the full screen, just get rid of the frame.
And I'm pretty sure that Alvekat wants his play area to be greater than a single screen.
Offline
Right. What i was saying was just for an illusion of scrolling--it wouldn't really be effective at all, as you say--i though that was what he was going for. Sry
!
Offline