Random Spawn Question

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited November -1 in Working with GS (Mac)
I have this working: A random (1-5) block spawned when I click on a container.

What I'm having troubles with: Getting the random block to appear in the container before you click on it, I guess kinda like Tetris as an example - so you can see the next block/actor before you click on it.

I'm close but just can't figure how to spawn random actors before you click on them. Also, the blocks need to have physics, so would there be another problem once it randomly spawns in that it would fall down?

Thanks a lot in advance

Comments

  • BaDDAppleBaDDApple Member Posts: 49
    Not knowing your game exactly you could use a timer to get the random # and then spawn the block. Have all the physics you need in the block that is spawned. Then not have it fall until the first block is in place or you clock on it.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    yeah I pretty much had that..but getting it to work is another question lol.
Sign In or Register to comment.