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
32
S
13
G
21
Posts: 845
Reputation: 14,722

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
22
S
9
G
4
Posts: 482
Reputation: 4,346

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
22
S
9
G
4
Posts: 482
Reputation: 4,346

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
32
S
13
G
21
Posts: 845
Reputation: 14,722

Post » Tue Jun 06, 2017 6:22 pm

The Mnk wrote:Thanks for the solution.


You're welcome :)
B
22
S
9
G
4
Posts: 482
Reputation: 4,346

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
32
S
13
G
21
Posts: 845
Reputation: 14,722


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 18 guests