# Quantity of Object Spawned Up Increases as the Speed of Object Being Spawned Up Increases

Member Posts: 3
edited February 2019

I am trying to emulate the similar way how the ice cream shoots seen in this video:

Each cone randomly shoots up the ice cream. The part I am having trouble implementing is the following:

• Each cone randomly shoots up the ice cream. (I did use the random function for each cone, but the random generator seems give me the same number for all cones, causing all the creams to be shot up all at the same time)...

• Every about 1.25 minutes the speed of the creams being shot up increases AND the amount of cream being shot up increases. The game initially starts slow = not too many creams, but as the cream is being shot up faster the amount of cream increases. I keep getting a result where as the speed increases, the less cream get shot up to the point almost nothing get shot up for really really long time...

Any tips is greatly appreciated!

• Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,944

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

• Member Posts: 3
edited February 2019

Image: https://imgur.com/a/20fG7Ws
I've decided to use the table with the column filled with random generated numbers... probably not a good idea.. not very true random..

Visual Result: https://youtu.be/nRsMSF47iXg

• Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,944

The Timer behavior will not update the expression value each cycle. So if you have something like Timer every random(1,5), it will choose a value such as 2 and run every 2 seconds forever. It won't keep refreshing the value of the random(1,5) expression.

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

• Member Posts: 597

@tatiang said:
The Timer behavior will not update the expression value each cycle. So if you have something like Timer every random(1,5), it will choose a value such as 2 and run every 2 seconds forever. It won't keep refreshing the value of the random(1,5) expression.