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
21
Posts: 801
Reputation: 14,453

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
20
S
8
G
3
Posts: 460
Reputation: 4,059

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
20
S
8
G
3
Posts: 460
Reputation: 4,059

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
21
Posts: 801
Reputation: 14,453

Post » Tue Jun 06, 2017 6:22 pm

The Mnk wrote:Thanks for the solution.


You're welcome :)
B
20
S
8
G
3
Posts: 460
Reputation: 4,059

Post » Tue Jun 06, 2017 9:49 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

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
21
Posts: 801
Reputation: 14,453


Return to Construct 2 General

Who is online

Users browsing this forum: JesusJ and 7 guests