How can I do a random function on a timer, which uses less that 1 second?

StormyStudioStormyStudio United KingdomMember Posts: 3,989
edited November -1 in Working with GS (Mac)
Quick question,

I've tried myself but can't think out of the box...

Got a timer on an actor that i want to destroy at the end of a level, as there are a few I want them to disappear at different times as it will have a nice effect.

Currently I've used:

Timer..

'After' random (0,2)

Destroy actor.

......

Now the above works, but seems to only destroy actors at, 0, 1 or 2 seconds and not anyting in between e.g. 1.6 seconds.

Any ideas?

Just be nice, as there are more than 3 of this sort of actor and I'd like the time more varied.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    search for variable timer in the shared projects.

    in the part that changes the variable to variable*1.1

    change it to (random(1,10))/10) that will give you random tenths.

    so I guess you could create a new attribute for the ones place value and set it random(0,2) and in the timer value add the two variables.
Sign In or Register to comment.