Hello,
I have been trying to rotate a sprite but find it hard to get it right. I simplu just want it to rotate while going from top of screen to bottom of the screen. I am guessing that it is because i don’t understand quaternion and go.set_rotation needs one. Is there an simple example how to rotate an sprite without messing with my downward motion of the sprite, in the sprite i have this script:
function init(self)
self.speed = 1000
end
function update(self, dt)
local pos = go.get_position()
pos.y = pos.y - self.speed * dt
go.set_position(pos)
go.set_scale(0.8)
end
/Isak