Setting q.Rotate = 0; first did it. That's great, thanks.
But should it work in a window, where a container 'EntImage' has an entity I want to rotate? I have a button with its own script that is supposed to start the entity rotating. No rotation is produced. Help please?
Thanks
on "LeftClick"
{
var x = Game.MouseX;
var y = Game.MouseY;
Game.LockMouseRect(x,y,x,y);
this.SetCursor("scenes\black\RotateCursorP.PNG");
Game.PlayMusicChannel(0, "scenes\black\StarsAndStripes.ogg", true);
global w; // Call the loaded window
var i;
i = w.GetControl("EntImage");
i.Rotate = 0;
while(true)
{
i.Rotate = i.Rotate + 10;
Sleep(100);
}
}
on "LeftRelease"
{
this.SetCursor("scenes\black\RotateCursor.PNG");
Game.StopMusicChannel(0);
Game.LockMouseRect(0,0,0,0);
}