Spawning 'actors' at random locations that grow to random sizes
Ecnalyr
Member Posts: 3
I need to spawn actors (they will be bubbles) in my game at a random location that will grow from a very small size to a random size between a specified setting (like the bubbles are getting 'blown up'). I also need these 'bubbles' to be 'blown up' at different speeds (some faster, some slower).
So I specifically need to do the following:
Decide where to spawn object at random;
Determine the size the object will grow (random width/height with min/max);
Determine the speed the object will grow;
Then the object needs to actually spawn and grow;
How would I do the above?
Thanks.
So I specifically need to do the following:
Decide where to spawn object at random;
Determine the size the object will grow (random width/height with min/max);
Determine the speed the object will grow;
Then the object needs to actually spawn and grow;
How would I do the above?
Thanks.
Comments
I believe there is a change size behaviour, in fact, i know there is as I have just used it.
As for the spawning, create a spawner actor and create a rule on it so that (i don't know when you want it to spawn so lets say...) every 1 second spawn actor. Use the random function so that in the X position it looks like 'random(0,XXX)' and in the Y position it looks like 'random(0,YYY) . XXX and YYY being the X limit and Y limit of where they should spawn.
I cannot, however, figure out how to make them spawn every 1 second like you suggested. I can make a rule that can do something when game.Time = a certain integer, or is >, <, etc. . . but I cannot figure out how to get it to spawn something every x amount of seconds.
What am I missing?