How do I make an object spin/rotate?

Get help using Construct 2

Post » Mon Apr 25, 2016 9:26 pm

So, I was trying to look for an answer, but all I got was to make it spin/rotate like the sun, in a orbit.

But I want the object to spin, like this:

Image

Any ideas?

EDIT: I forgot to say. The object needs to move AND spin, so I'm using bullet behavior, and its because the bullet behavior that the object instead of spin on itself is making a circle movement.
Last edited by fernandokolbe on Tue Apr 26, 2016 2:47 am, edited 1 time in total.
B
9
S
3
G
1
Posts: 20
Reputation: 1,169

Post » Mon Apr 25, 2016 9:44 pm

Use the rotate behavior.
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Tue Apr 26, 2016 2:47 am

R0J0hound wrote:Use the rotate behavior.



Oh, ty but I forgot to say. The object needs to move AND spin, so I'm using bullet behavior, and its because the bullet behavior that the object instead of spin on itself is making a circle movement.

Is there any behavior instead of bullet to make an object move by itself?

The object is like a meteor that goes crossing by the screen in a straight line and you have to avoid it.
B
9
S
3
G
1
Posts: 20
Reputation: 1,169

Post » Tue Apr 26, 2016 3:35 am

I've not tried to do what you're trying to do before, but if bullet movement is fundamentally messing up what you want to do, why not make a container object that has an invisible bullet behaviour object and a separate visible sprite that does the rotating animation laid on top of each other?
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 204
Reputation: 3,466

Post » Tue Apr 26, 2016 3:38 am

The bullet behavior has a property "set angle", set that to "no" and the rotate behavior won't change the angle of the bullet's motion.
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Tue Apr 26, 2016 3:41 am

R0J0hound wrote:The bullet behavior has a property "set angle", set that to "no" and the rotate behavior won't change the angle of the bullet's motion.


That worked like a charm. Thank you very much! ;)

mikehive wrote:I've not tried to do what you're trying to do before, but if bullet movement is fundamentally messing up what you want to do, why not make a container object that has an invisible bullet behaviour object and a separate visible sprite that does the rotating animation laid on top of each other?


Thank you too, but R0J0hound's solution worked for me, and it is simpler! As I'm a newbie I'm gonna stick with that for now! :oops:
B
9
S
3
G
1
Posts: 20
Reputation: 1,169


Return to How do I....?

Who is online

Users browsing this forum: Unconnected, Yahoo [Bot] and 23 guests