Trying to rotate round game object 90 degree on each input, after one round rotation no longer happening 90 degree rotation.
Maybe If I’m guessing this is because of
Euler angles are specified in degrees in the interval (-360, 360)
I don’t know.
function on_input(self, action_id, action)
if action_id == hash("key_right") then
if action.pressed then
self.globe_angle = self.globe_angle - 90
go.animate(".", "euler.z", go.PLAYBACK_ONCE_FORWARD, self.globe_angle, go.EASING_INCUBIC, 1, 0, function()
end)
end
This is what I’m trying to achieve round menu. If someone can break tips for creating something like this(bottom video clip). Specially how input handing is happening here. If it’s only swipe then it can be done easily. But I’m finding their is drag movement also.