How can I make an actor fall from top to bottom, inifinitely?

aliabuhussainaliabuhussain Member Posts: 4
edited November -1 in Working with GS (Mac)
i am trying to make an actor fall from the top of the screen to the floor. i made one but what i need is infinite of the same actor to fall, so how can i do that

Comments

  • aliabuhussainaliabuhussain Member Posts: 4
    thanx man for replying.. and how can i do that ??
  • SnapFireSnapFire Member Posts: 361
    Here's how:

    1) Make sure something is spawning one of the actors that is falling at the top
    2) Make sure that actor has a behavior that makes it fall, or is affected by gravity
    2) Add an actor (Bottom) stretching across the bottom.
    3) Inside the actor that falls put a rule: When overlaps or collides with actor (Bottom) ,then change self.position.y to above your screen. (If the game's landscape:340 If the game's portrait:500) You may also want to change the x for more effect.

    I hope that helped
    -Thomas
  • keweworkshopkeweworkshop Member Posts: 377
    I like ice cream too. :D
  • SnapFireSnapFire Member Posts: 361
    keweworkshop said:
    I like ice cream too. :D

    I scream you scream we all scream for ice cream!
    lol

    -Thomas
  • 3xL3xL Member Posts: 676
    you can try wrapping y. or do what others said, repositions actors when they pass the end of the screen
Sign In or Register to comment.