Layer angle

Get help using Construct 2

Post » Wed Jan 11, 2012 11:45 am

Is there a way to get the value of the layer angle? I can't seem to find it anywhere. Thanks
B
9
S
4
G
5
Posts: 9
Reputation: 3,582

Post » Wed Jan 11, 2012 12:24 pm

There is no official expression to get it.

You will have to do some work

Basically you need a global variable, name it appropriately.
I named my LayerAngle

Now make the event to handle the rotation, For this example i'll just do a mouse click.

Mouse.OnClick[Left]
     ->System.addTo[LayerAngle(90)]
     ->System.SetLayerAngle([Layer], LayerAngle)

System.CompareTwoVales(LayerAngle > 360)
     -> System.SetValue(LayerAngle(0))

That should work, Let me know if you need a capx
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Wed Jan 11, 2012 2:15 pm

Thanks a lot, it did the trick!
B
9
S
4
G
5
Posts: 9
Reputation: 3,582


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests