Hi Oberon3D,
it still works with A7.
You only need to apply the action "rotator" to your entity (mdl, no sprite) and you should see your entity is rotating. In this case the main loop controls the animation.
-- slacer
Code:
// lab.wdl
entity* KUGEL;
action rotator {
my.shadow = on;
KUGEL = me;
}
function main() {
level_load( "lab.wmb" );
wait(3);
while(1) {
while (!KUGEL) {
wait(1);
}
if ( KUGEL ) {
kugel.pan += 3 * time_step;
}
wait(1);
}
}