grumpygamer Posted April 1, 2015 Share Posted April 1, 2015 Hello there,just joined this community after discovering Phaser (Amazer!).As the title suggest I'm building a shooter for myself and have come across a simple problem I would like each stage (a.k.a. level) of the shooter to have multiple backgrounds: 3 actually. So at the beginning you'd for example be near the ground where you take off (static background), you'd then reach let's say the sky that would repeat itself (tiled background) and then arrive over to the next strip of land where you'd then end the level. In summary ---- TAKE OFF ---....................................................................................................................................................................................................----- MID TRIP ----////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////---- LANDING ----@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ the mid trip section should repeat.Thanks guys Link to comment Share on other sites More sharing options...
grumpygamer Posted April 7, 2015 Author Share Posted April 7, 2015 Hmm, is the question not clear enough or maybe it's just plain dumb? Link to comment Share on other sites More sharing options...
Akshar Patel Posted April 7, 2015 Share Posted April 7, 2015 Have a look at the documentation and examples of TileSprite. It'll help you get started to what you want to achieve. Link to comment Share on other sites More sharing options...
grumpygamer Posted April 13, 2015 Author Share Posted April 13, 2015 Hey,I had a look at the documentation, but no examples seem to cover what I'm trying to achieve. I am using the same mechanics on a character selection screen (with a variable amount of selectable PCs).I can control scrolling with keyboard presses there, but I am really unsure how to do it with perpetual scrolling (maybe with time?) On the character selection screen I started controlling the tween on a tilesprite to move a certain amount of pixels at a time; the background scrolls a specified amount of pixels on a key press.The next step would be to overlay and sync a start and an end layer on top of the tilesprite sheet, but I'm unsure of how to sync it. Link to comment Share on other sites More sharing options...
Recommended Posts