spawning behavior not working properly

Hello,

I have a rule like this:
image
But sometimes the result is like this (it spawns A LOT of actor without respecting the timer!!):
image

Any idea? I already had this problem in the past with this spawn behavior...I think that know is a gamesalad bug or? correct me if I am wrong.. :)

Comments

  • patapplepatapple Member Posts: 873
    any idea?
  • FViMaginationFViMagination Member Posts: 89
    did you try to check Run to Completion?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    When you use a random number function inside of a timer, the random number only gets generated ONCE. So for example, if you had random(1,10), it might pick 2 and then you basically have an every 2 seconds timer.

    If you're intending to have a timer that runs for 0.8 seconds and then 1.1 seconds and then 1.4 seconds and then 0.9 seconds, etc. You have to generate the random number outside of the timer behavior and then use an attribute inside of the timer.

    When you say it's not respecting the timer, what do you mean? It's hard to tell from a still picture what the problem is because I don't know if that screenshot was taken after one second or ten seconds.

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

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    I don't think GameSalad likes real numbers in the random function. Try changing it to random((8,16)*.1)
Sign In or Register to comment.