how do i create a continous scrolling background

I have created 3 actors for the scene background, ground, trees, mountain.

I have created the pics that i will use for each of them.

(trees) ie: I have created a move rule, that move in direction 180, relative to actor in a stacked way, at speed of 5.. seems to scroll fine (left) now i want the image to continue to follow itself (continuously scrolling through out the game)

would i need to re spawn the image to follow itself?

much help needed.. cheers

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You can check out our free Santa go template on DBA that might help.

    Darren.
  • daaddddaaddd Member Posts: 116
    put the ground to spawn another ground on self.position.x+it width , dont forget to destroy the old one for memory saving
  • GameLabs222GameLabs222 Member Posts: 197
    edited March 2014
    @DeepBlueApps‌ I was actually just tearing apart santago to find your background spawning rules and couldn't find them. Reason being, I have a problem with my ground plane.

    I have rules of my own for spawning at the width of the image once it's passed a certain threshold, however, tearing occurs by about 1 pixel. Once actors start spawning the images tear even more, (maybe 5 or 6 more pixels due to lag?) leaving obvious gaps between them. This is an image that needs to lay perfectly to the next image, and I cannot seem to find a way for it to work.

  • tarsiustudiotarsiustudio Member Posts: 130
    @Brentonn222 Template go santa continuous scrolling background makes the actor putting the speed and direction of the actor and then wrap Bookmarking scene X.
  • GameLabs222GameLabs222 Member Posts: 197
    edited March 2014
    @tarsiustudio Thanks! I knew there was something simple for this but I was searching for all the wrong terms.

    Can't believe I didn't see it right in front of me. :)
  • tarsiustudiotarsiustudio Member Posts: 130
    do not worry, there are times you can not solve a problem and then you realize that's nonsense and you had it right before the problem hehe. Greetings and glad I could help
  • GdoggGdogg Member Posts: 95

    ive also tried scene .. size..wrap x tick, it works perfect, but having said that, other spawning actors now seem to multiply.. not what i want,, ive tried changing the atribute in size wrap x but it doesnt seem to work when its in the box

Sign In or Register to comment.