random spawning

Hello!
I am making a math game where the numbers need to spawn from the top of the scene and move downwards. How can I make numbers random spawn across the top of the scene?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Spawn an actor at whatever position you want along the top of the screen and then in the spawned actor, have a rule that changes an actor attribute such as self.myValue to random(1,10) or whatever upper limit you want. Then use a Display Text to display self.myValue and give the actor a Move rule.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • bob loblawbob loblaw Member, PRO Posts: 793

    @jessica.michael said:
    Hello!
    I am making a math game where the numbers need to spawn from the top of the scene and move downwards. How can I make numbers random spawn across the top of the scene?

    like this?

Sign In or Register to comment.