How do I make an object slowly spiraling outward

Get help using Construct 2

Post » Tue Jun 07, 2016 4:46 pm

I want do make an object move like the paladin hammer in Diablo 2. I've tryed to make the object distance itself from is origin point while rotating. (Rotation behavior). Thanks.
B
18
S
3
Posts: 13
Reputation: 876

Post » Wed Jun 08, 2016 3:16 am

an object can not be distanced from it's own origin point.. try distancing it from any other point..
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Sat Jun 11, 2016 3:12 am

Well... it will have to rotate around is creation point, while getting away from is creation point. I can make a circle trajectory, but not a spiral.
Is creation point can appear anywhere at the location of the player.
B
18
S
3
Posts: 13
Reputation: 876

Post » Sat Jun 11, 2016 3:20 am

Maybe the bullet behavior and the rotate behavior with negative acceleration?

An all event route could also look like this:

Global number dist=0
Global number ang=0

Every tick
--- add 100*dt to dist
--- add 180*dt to ang
--- Sprite: set position to (100,100)
--- Sprite: move dist pixels at angle ang
B
92
S
32
G
106
Posts: 5,272
Reputation: 69,455

Post » Sat Jun 11, 2016 6:04 pm

B
36
S
10
G
9
Posts: 212
Reputation: 6,945

Post » Mon Jun 13, 2016 2:30 am

Thanks a lot for the good info and have nice day.
B
18
S
3
Posts: 13
Reputation: 876


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky, nahima and 5 guests