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
101
S
39
G
134
Posts: 5,591
Reputation: 85,520

Post » Sat Jun 11, 2016 6:04 pm

B
47
S
11
G
10
Posts: 237
Reputation: 7,902

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: No registered users and 5 guests