[Solved]How do I Use Sine Behavior with Rotation

Get help using Construct 2

Post » Sun Jan 21, 2018 4:30 pm

Hi,
I can`t figure out how to use the Sine Behavior for Angle while I try to rotate the Sprite to a given position or angle.
Trying to get the sprite to "jiggle" while it is moving and slowly rotating to it`s way.
Any suggestion?

When I set Sine active it does nothing until I disable the rotation event, but than it doesn`t rotate... How to use both properly?
Last edited by Icon3x on Sun Jan 28, 2018 10:03 am, edited 1 time in total.
B
5
S
1
Posts: 12
Reputation: 576

Post » Mon Jan 22, 2018 3:28 am

You mean like this?
https://www.dropbox.com/s/rqe6p4yfvvhrw ... .capx?dl=0

Instead of the second "reference" sprite, you can use a variable that simply increases with every tick (newAngle=newAngle+dt).
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,762
Reputation: 67,845

Post » Tue Jan 23, 2018 5:52 pm

Aaah, thats nice! Was thinking the wrong way..
Thank you dop2000, that was exactly what I needed!

Need more tricks like that
B
5
S
1
Posts: 12
Reputation: 576


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests