Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Rocco on May 31, 2006, 05:48:09 PM
-
i tried many different approaches, but dont get this damn button to rotate.
i have the button script which look like this with my nonfunctional rotationcode :(.
var rotation = 5;
self.Rotatable = true;
self.Rotate = rotation;
on "LeftClick"
{
rotation = rotation + 10;
self.Rotate = rotation;
.
.
other code which works :-)
.
.
Sleep(10);
}
-
GUI elements cannot be rotated. You'd have to use an entity instead of button.
-
thx, its not so important, but i found this in the help file, under Button object -> Attributes
-
Yes, well, these are the joys of object oriented programming. All the game objects inherit the Rotate attribute, but only some of them actually do implement it.