How do I make objects constantly rotate and move?

Get help using Construct 2

Post » Tue Aug 30, 2016 9:26 am

I just want some objects to move and rotate pretty slowly but constantly, something similiar to the little polygons in the game "diep.io".
B
4
Posts: 3
Reputation: 208

Post » Tue Aug 30, 2016 12:14 pm

You create an event:

[every 0.01 seconds]
[YourObjectName set angle to (YourObjectName.Angle+0.01) degrees]
[YourObjectName2 set angle to (YourObjectName2.Angle+0.01) degrees]
B
12
S
7
G
4
Posts: 114
Reputation: 3,067

Post » Tue Aug 30, 2016 12:25 pm

Just add the rotate behavior and the bullet behavior to an object
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Tue Aug 30, 2016 1:08 pm

Pandadoor wrote:You create an event:

[every 0.01 seconds]
[YourObjectName set angle to (YourObjectName.Angle+0.01) degrees]
[YourObjectName2 set angle to (YourObjectName2.Angle+0.01) degrees]

But that's only the rotation, isn't it?
B
4
Posts: 3
Reputation: 208

Post » Tue Aug 30, 2016 8:38 pm

Try a bullet behavior with randomized angles as well to make it move.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Wed Aug 31, 2016 1:54 am

The Sine behaviour will also do that very easily. Use multiple sine behaviours for vertical and horizontal movements, rotate, size etc.
B
21
S
6
Posts: 59
Reputation: 1,387

Post » Wed Aug 31, 2016 5:51 am

Thanks for all the answers! I think I got it now.
B
4
Posts: 3
Reputation: 208


Return to How do I....?

Who is online

Users browsing this forum: donstathemonsta and 25 guests