Long scene

patapplepatapple Member Posts: 873
edited May 2012 in Working with GS (Mac)
Hi,

I would like to create a game like "Line Man Run". The goal is to run as long as possibile. How can I create a scene infinite long in GS?


Thanks

Best Answers

  • BrynjeBamsenBrynjeBamsen Posts: 188
    Accepted Answer
    you take a couple of actors (ground actors)
    make a randome spawn position within min/max Y position

    Then make the actors move right to left with a move behavior.
    Once the actor is outside you left screen on your scene recycle the actor to your right side

    If self.position = -200
    Change attribute self.position.x to (whatever position outside the screen on your right side)
    Change attribute self.position.y to random(min,max) to give you som variation on the landscape

    on your "hero" actor just make a upward acceleration evertime jump is pushed.

    hope it helps :)

    Later
  • MotherHooseMotherHoose Posts: 2,456
    edited May 2012 Accepted Answer
    easiest way is:
    have actor stay in center area of scene and have the background images scroll
    and recycle backgrounds

    control other events with gameAttribute … index type … flow

    emailed you a demo … Pat

    image MH

Answers

Sign In or Register to comment.