[SOLVED] Random sprite angle

Get help using Construct 2

Post » Wed Feb 19, 2014 12:30 am

Hi, i need to know how to set a random angle to a sprite, so then when the layout starts, every copy of that sprite will be with a diferent rotation angle. Can it be done? and how? THANKS!rangelrmorais2014-02-19 01:43:05
Last edited by rangelrmorais on Thu Feb 20, 2014 12:01 am, edited 1 time in total.
B
9
S
1
Posts: 7
Reputation: 949

Post » Wed Feb 19, 2014 1:55 am

Condition:
-On start of layout.
--For each sprite

Action:
-Sprite > set angle random(360)
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Wed Feb 19, 2014 8:48 am

In this case there is no need for "For each"

on start of layout-- sprite: set angle(random 360)
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,832

Post » Thu Feb 20, 2014 12:00 am

Oh! Thanks! it helps me ALOT!
B
9
S
1
Posts: 7
Reputation: 949


Return to How do I....?

Who is online

Users browsing this forum: puntodamar and 6 guests