Hi there!! Does anybody know how to rotate actor around center point? like this figure? ↓
Does it rotate at a constant rate (if so does it need to be stoppable), or is the rotation controlled by the player?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Now that we have the ability to change the Center Of Mass, I'd just offset that and then use a Rotate Behavior to rotate around that point.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
See example project. Constrains used: 284+(100 * sin(time * 500)) 160+(100 * cos(time * 500))
284, 160 = centerpos.x,centerpoint.y 100 = radius time = self.time 500 = speed
Lump Apps and My Assets
@satoshiwakata https://en.wikipedia.org/wiki/Pythagorean_trigonometric_identity https://en.wikipedia.org/wiki/Unit_circle
Armelline
Thank you for your reply. This is what the rotation controlled by the player. I intend when player touch actor, actor rotates against center point.
jamie_c
Thank you for your reply. Would you explain concretely?
LumpApps > Thank you for you reply. Unfortunately, I could not open your file. If you could, would you send to me again? And, I am going to try in use of your comment.
tmann
Thank you for your reply !! But, I want to more elementary tutorials.
@satoshiwakata said: I intend when player touch actor, actor rotates against center point.
First: move the Centre of Mass.
Rule: When mouse button is down --Rotate behaviour.
Comments
Does it rotate at a constant rate (if so does it need to be stoppable), or is the rotation controlled by the player?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Now that we have the ability to change the Center Of Mass, I'd just offset that and then use a Rotate Behavior to rotate around that point.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
See example project.
Constrains used:
284+(100 * sin(time * 500))
160+(100 * cos(time * 500))
284, 160 = centerpos.x,centerpoint.y
100 = radius
time = self.time
500 = speed
Lump Apps and My Assets
@satoshiwakata https://en.wikipedia.org/wiki/Pythagorean_trigonometric_identity
https://en.wikipedia.org/wiki/Unit_circle
Thank you for your reply.
This is what the rotation controlled by the player.
I intend when player touch actor, actor rotates against center point.
Thank you for your reply.
Would you explain concretely?
LumpApps >
Thank you for you reply.
Unfortunately, I could not open your file.
If you could, would you send to me again?
And, I am going to try in use of your comment.
Thank you for your reply !!
But, I want to more elementary tutorials.
First: move the Centre of Mass.
Rule:
When mouse button is down
--Rotate behaviour.