How do I make an object rotating with variable speed?

Get help using Construct 2

Post » Sun Sep 03, 2017 3:38 pm

hi i would like to achive this kind action, i have an arrowe who need to turn exaclty like the sword in this video.
how can i achive that?

https://youtu.be/UxSo_2v2rj8?t=434
B
44
S
18
G
7
Posts: 1,816
Reputation: 10,378

Post » Sun Sep 03, 2017 3:50 pm

Use LiteTween behavior with one of the "elastic" functions.
behavior-litetween_t70700
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
126
Posts: 1,753
Reputation: 67,327

Post » Sun Sep 03, 2017 3:59 pm

how to tell to stop at random angle?
like the sword in the link
B
44
S
18
G
7
Posts: 1,816
Reputation: 10,378

Post » Sun Sep 03, 2017 4:08 pm

solved with round(random(1,5))
B
44
S
18
G
7
Posts: 1,816
Reputation: 10,378

Post » Sun Sep 03, 2017 4:44 pm

i have a problem with it, how to tell to my arrow to continue the next rotation from his actual angle when i click??
B
44
S
18
G
7
Posts: 1,816
Reputation: 10,378

Post » Mon Sep 04, 2017 3:13 am

Are you using LiteTween? Here is how:
https://imgur.com/M5xpu8z
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
126
Posts: 1,753
Reputation: 67,327

Post » Mon Sep 04, 2017 4:29 am

dop2000 wrote:Are you using LiteTween? Here is how:
https://imgur.com/M5xpu8z


Would you mind creating a .capx of how this would work? I'm not even sure I have the behavior installed after getting my new PC.
B
245
S
135
G
9
Posts: 158
Reputation: 24,322

Post » Mon Sep 04, 2017 5:31 am

I think you might be able to add 360 to it.. to overshoot it.

depends on what method you are using to rotate it.
B
101
S
34
G
16
Posts: 1,212
Reputation: 17,016

Post » Mon Sep 04, 2017 8:02 am

YoHoho wrote:
dop2000 wrote:Are you using LiteTween? Here is how:
https://imgur.com/M5xpu8z


Would you mind creating a .capx of how this would work? I'm not even sure I have the behavior installed after getting my new PC.


Here you go:
https://www.dropbox.com/s/3c7a3kz4djl73ql/test6.capx?dl=0
You'll need to install LiteTween behavior (I posted the link earlier) to open my CAPX.
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
126
Posts: 1,753
Reputation: 67,327

Post » Tue Sep 05, 2017 9:50 am

thanks for your help :D how to tell now to my ap, when the arrow has finished rotating with litetween then remove x from a variable?
Last edited by imothep85 on Tue Sep 05, 2017 10:21 am, edited 1 time in total.
B
44
S
18
G
7
Posts: 1,816
Reputation: 10,378

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests