I really don't have much skills in the even sheet but i was wondering how do i make a background that keeps scrolling without me copying and pasting the background for a long time , i'm trying to make a doodle jump style game so the background has to scroll up please help???!?!?
I use infinite scrolling backgrounds all the time! :D
What I typically do is take a TiledBackground object and stretch to about 2 or 3 times the size of the screen.
Then I create some events that tell it to move at a certain speed (Set Background.Y to Self.Y * <Speed> * dt).
If it goes past a certain point (like 512 pixels away from its starting point) then it moves the BackGround object back to its starting point (If Background.Y is greater than <Background's starting y position + 512>, set y to its original position)
That's what I usually use! Hopefully, this will help!Zero62013-01-12 05:10:20
hi.. I need help desperately. I'm currently very new at game making.. I want to make an infinite jump like doodle jump too.. but the How do I faq doesn't seem to solve my problems.. I currently have 2 problems
1st my high score box won't go with the sprite, 2nd, the background also won't go with the sprite as the sprite moves higher.. how do I make GUI for Infinite VERTICAL scrolling? tried to do it with the infinite jumping template.. If you guys are wondering about my capx, here it is.. http://www.mediafire.com/?td7v2r589q8iwr5
Hi Sulli! thanks for the fast reply! I managed to do it with with pin behavior! Yeah.. now my background and my high score pinned to my Char like GUI! Thanks for your info.. but I think scroll to doesn't have the option to scroll with the player lol.. at first I was confused because there is only shake option in the scroll to behavior. Now I can move on to my next objective!(which is power ups and obstacles) :)