How do I make random speeds for moving platform

Get help using Construct 2

Post » Wed Apr 02, 2014 9:42 pm

Hey guys. So far i've got a bar moving in a sine wave motion at a random speed for a between a range with periods 0.5 - 16.

I'm just wondering is there a way to make it pick from certain values at random. eg 1 4 5 810 are the periods and pick one at random.


Thanks for the help
B
7
S
2
G
3
Posts: 31
Reputation: 2,446

Post » Wed Apr 02, 2014 9:55 pm

choose(1,4,5,8,10) will pick one of the given numbers
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Wed Apr 02, 2014 10:32 pm

O just checked it out. Is that how it works. So sorry i never got back to you RamPackWobble. That PM box wasnt working well for me.

Thanks for the help again seriously
B
7
S
2
G
3
Posts: 31
Reputation: 2,446


Return to How do I....?

Who is online

Users browsing this forum: zsoldiers and 6 guests