Falling sprites from top to bottom

Greetings to all! Am new to game salad in the process of making my first game. Please explain me how to set a sprite falling from top after certain intervals in game salad. I want the same sprite to fall from top to bottom after certain period of time. (like the moving pips in flappybird). Thanks in advance.

Comments

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370
    edited March 2014

    First off I think you mean Actor (No to be pedantic or anything)
    Secondly what platform are you using?

    Create the actor that is going to fall, I'll call it FallingActor. And a mainframe (You could use the background I suppose.

    MainFrame (Or background, whatever you want to use)

    • Add a timer for after x seconds (run to completion on)
    • In the timer spawn actor FallingActor from position x - random(0,320) y - 500 (just above the screen so you dont see it spawn

    FallingActor

    • I like to use the interlope behavior rather than using the gravity so add that and select your speed

    To destroy the actor once it has moved offscreen

    • If attribute self.position.y < 0
    • Destroy this actor

    Let me know if you have any issues with that

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

  • skdiatskdiat Member Posts: 5

    it worked. Thanx a lot mate

Sign In or Register to comment.