particle genertaor rotation

Get help using Construct 2

Post » Wed Feb 05, 2014 6:14 pm

I have created an particle emitter which i rotate towards the player when a key is pressed using
Setangletoward(player.x,player.y) it works perfectly but now when i try to direct the particle emitter away from the player using Setangletoward(-player.x,-player.y) it wont work...! what am i doing wrong..how do i fix this..

leoleo2014-02-05 18:15:19
B
4
Posts: 2
Reputation: 204

Post » Wed Feb 05, 2014 6:43 pm

[QUOTE=leoleo] I have created an particle emitter which i rotate towards the player when a key is pressed using
Setangletoward(player.x,player.y) it works perfectly but now when i try to direct the particle emitter away from the player using Setangletoward(-player.x,-player.y) it wont work...! what am i doing wrong..how do i fix this..

[/QUOTE]




Try


Setangletoward(player.X,player.Y) - 180

Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed Feb 05, 2014 7:08 pm

Thank you for the quick reply but I tried that.....

even tried -90 & -360 for good measure... it wont work..

I m not being allowed to post URL / Images so m not able to show u screen grabs..leoleo2014-02-05 19:08:36
B
4
Posts: 2
Reputation: 204


Return to How do I....?

Who is online

Users browsing this forum: davidbox, Mayfly and 5 guests