How To Do Something After Amount Of Time?

appleshowyouappleshowyou Member Posts: 31
edited November -1 in Working with GS (Mac)
I have a game with like 7 computer players. I am trying to do something where when the player hits start. Each computer drops after a random time between 0 and say 1.5 seconds. So I make a rule saying when start is pressed, After "random (0,1.5)" actordrop. However, the actor seems to drop after 1.5 seconds everytime, not a random time between 0 and 1.5 seconds. Any Ideas?

Comments

  • 3d103d10 Member Posts: 471
    You should put every - seconds in the timer not after
  • appleshowyouappleshowyou Member Posts: 31
    It still goes doesn't do anything until it reaches the max time. Its not random
  • mangaroomangaroo Member Posts: 419
    Timers don't work with random yet unfortunately. there could be another way to set an attribute that picks a random number and based on that number you can set a bunch of different delay timers for your cpu actions
  • RedlerTechRedlerTech Member Posts: 1,583
    Thats simple :)

    I'd be glad to help :)

    Check out my 1 on 1 project help
    Matt
    _________________________________________________________________________________
    GameSalad Community Project
    Quality Game Making Service
    1 On 1 Project Help
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    mangaroo said:
    Timers don't work with random yet unfortunately. there could be another way to set an attribute that picks a random number and based on that number you can set a bunch of different delay timers for your cpu actions

    You have to restart that Timer behavior to get a new value for it.

    http://gamesalad.com/wiki/how_tos:gsc_variable_timer_speed
Sign In or Register to comment.