BUG with sine behavior?

Discussion and feedback on Construct 2

Post » Mon Jun 05, 2017 9:54 am

Hi, sine behavior does not work after doing this.
Is it a bug? Does anyone know?

Image

https://www.dropbox.com/s/yy3jzftrivikgd6/testSine.capx?dl=0
B
29
S
12
G
20
Posts: 759
Reputation: 13,861

Post » Mon Jun 05, 2017 1:22 pm

The Mnk wrote:


It's the "Update Sine initial state" action that is stopping the behaviour restarting - not sure why though.
B
16
S
7
G
3
Posts: 396
Reputation: 3,700

Post » Mon Jun 05, 2017 1:35 pm

Not sure if this helps, but you can start oscillating at the new angle using timers:

https://www.dropbox.com/s/wzyz2fitxth5r ... .capx?dl=0

Timers also make it much easier to interrupt a behaviour than using Wait X seconds, by using the Stop Timer action.
B
16
S
7
G
3
Posts: 396
Reputation: 3,700

Post » Mon Jun 05, 2017 2:42 pm

mekonbekon wrote:Not sure if this helps, but you can start oscillating at the new angle using timers:

https://www.dropbox.com/s/wzyz2fitxth5r ... .capx?dl=0

Timers also make it much easier to interrupt a behaviour than using Wait X seconds, by using the Stop Timer action.


Yeah, it's kind of weird and I think it should work.
Thanks for the solution.
B
29
S
12
G
20
Posts: 759
Reputation: 13,861

Post » Tue Jun 06, 2017 6:22 pm

The Mnk wrote:Thanks for the solution.


You're welcome :)
B
16
S
7
G
3
Posts: 396
Reputation: 3,700

Post » Tue Jun 06, 2017 9:49 pm

B
33
S
18
G
28
Posts: 2,475
Reputation: 20,914

Post » Wed Jun 07, 2017 10:50 am

Thank you, that's another way to do it.
So why does not my example work?
B
29
S
12
G
20
Posts: 759
Reputation: 13,861


Return to Construct 2 General

Who is online

Users browsing this forum: R0J0hound, vikuserro, Yahoo [Bot] and 3 guests