how do you do a background for a scrolling shoot them up game

guillefaceguilleface Member Posts: 1,014
edited November -1 in Working with GS (Mac)
i have a background with buildings so i want the image to scroll but i cant draw buildings all the way that will take forever, how can i do it so it comes back like if i had it x wrap, i dont have x grap because then all my actors will do the wrap x.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    have a rule when self position x is < 0 change self psootion x to 480

    youll need to tweak the numbers if your in portrait, and/or for your image size, but thats the premise of a manual wrap.
  • guillefaceguilleface Member Posts: 1,014
    ok so made two actors with 480 width, so my first actor is on the main scene, so i have a rule
    when self position is less than -240 change position x to 720, then my second actor is on position 720 when it stars so when is self position x less than -240 change position x to 720, the first part works good but then it start to seem that both images are separates from each other, how i fix this problem?
  • guillefaceguilleface Member Posts: 1,014
    also i have another background which are mountains so i want them to move really slow, so i try accelerate, move and change linear x velocity but it looks weird, it seems to move then stop then move , how can i do it so my image background moves very slowly but constantly?
  • Alien8Alien8 Member Posts: 37
    This was a trick that gave me a little challenge, but once I played with the numbers, it worked. the one think I had to remember was that the Actor's 0 position is when the MIDDLE of the Actor reaches the far left edge. Try when the Actor reaches posiiton 240 (positive number, in the middle of the screen), spawn Actor at position 720 (the MIDDLE of the Actor will be a 720, the far left edge will be at 480).
  • guillefaceguilleface Member Posts: 1,014
    still dont work good, so i had to resize my actor of 480 width to like 490, does this affect memory?
    and i cant still make my background to move really slowly it keeps showing like if it stop then moves
Sign In or Register to comment.