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
4
Posts: 13
Reputation: 1,026

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
88
S
43
G
71
Posts: 601
Reputation: 43,669

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
4
Posts: 13
Reputation: 1,026

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
94
S
33
G
117
Posts: 5,387
Reputation: 75,335

Post » Sat Jun 11, 2016 6:04 pm

B
41
S
10
G
9
Posts: 213
Reputation: 7,082

Post » Mon Jun 13, 2016 2:30 am

Thanks a lot for the good info and have nice day.
B
18
S
4
Posts: 13
Reputation: 1,026


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests