I know nothing about programming. Am at fighting my way through the lite C tutorial to change this. Haven't understood this much til now though to be honest. This language seems to be a nightmare to me. Nothing is really logical yet. Just everything made of special cases.
One of my biggest trouble is what the 3d GS engine uses with which ending.
This one is code from the Lite C tutorial. And so it should be Lite C code. It rotates an object:
Code:
action rotate_plane()
{
while (1)
{
my.pan = my.pan + 2 * time_step;
wait (1);
}
}
But just when i save it as WDL. Then it works perfect.
Saving it as *.c and including it into my mainscript gives me errors though. And the level won't start. Why? It is Lite C code

Well, no problem up to this point. Just save it as *.wdl and everything is good.
But what i wanted to do is to rotate an object while pressing a key. And now i am lost. Because the Lite C code from the tutorial spits out syntax errors about missing semicolon when trying to adopt it to this case :
Code:
action rotate_plane()
{
while (1)
{
if (key_a) my.pan += my.pan + 2 * time_step;
wait (1);
}
}