Sine behavior with size movement

Discussion and feedback on Construct 2

Post » Wed Jun 06, 2012 7:23 am

Add an object, give it the Sine behavior. Set the Movement to Size.
Any action like Set object Width, Set object scale are ignored.
Feedback1

Also the Bullet and Rotate behaviors don't work well together, it just cycle around a point. I thought it should moving and cycling at the same time.
Feedback2

Don't know if i missed something. Thanks for reading this.hylists2012-06-06 07:28:10
B
19
S
5
Posts: 51
Reputation: 1,883

Post » Wed Jun 06, 2012 11:16 am

The sine behavior is designed to override any set height/width commands. How would it work if it didn't?

Bullet and rotate also will of course not work well together as the bullet uses the object's angle to move, which means that it will cycle around a point.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Jun 06, 2012 11:47 am

@sqiddster thanks for your reply.
I hope it works like: when changed the object's size through action, get the changed object, reset the sine behavior on the changed object, so it will affect the changed object, is that possible? Not really important though, i can work around with it.

So is there any math to fake that type of movement: move toward and cycle around imagepoint at the same time?
B
19
S
5
Posts: 51
Reputation: 1,883

Post » Wed Jun 06, 2012 12:39 pm

Yeah, sorry, you will have to manually give a sine movement, it's not that hard.

For the other thing, you can get rid of the bullet and use 'move at angle'.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Jun 06, 2012 1:03 pm

Oh, it's work! Thank you!
B
19
S
5
Posts: 51
Reputation: 1,883

Post » Wed Jun 06, 2012 2:03 pm

You could try using the 'value only' mode of the sine behavior and apply the transformation yourself.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Jun 06, 2012 3:15 pm

I have no idea how to use the value only movement, can anyone give me an example, please.
B
19
S
5
Posts: 51
Reputation: 1,883

Post » Wed Jun 06, 2012 6:34 pm

It's a mode of the sine behavior, have you looked at the 'Sine behavior - types.capx' example in the examples folder?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests