GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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 Posts: 11,525Member, Sous Chef, PRO, Senior Sous-Chef

    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 Posts: 173Member, PRO

    @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.