How do I make a circular movement?

Get help using Construct 2

Post » Sun Mar 08, 2015 12:03 pm

Hello,

So I have a circle and a point rotating on that circle ( prntscr . com/6e7foz ) and when a player press a button to increase that speed . How do I make it rotate exactly on that circle with the speed given ? I have tryed multiple ways on this forum but all of those ecuations had the speed used to determine the location of the point ( when I increased the speed the point would teleport further) (ex. of what I have used prntscr . com/6e7ggn). How can I do it?
B
4
Posts: 23
Reputation: 246

Post » Mon Mar 09, 2015 12:56 am

variable 'rot' = 0
variable 'speed' = X

every tick: Add to 'rot' -> 'speed'

Point.X = sin(rot) * radius
Point.Y = cos(rot) * radius
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446


Return to How do I....?

Who is online

Users browsing this forum: Sup with that?, Yahoo [Bot] and 18 guests