First of all, if you are new here, Welcome!

Its funny you say that you think programming is not logical. That is what programming is - logical. In fact, thats why most errors occur during runtime, because the engine is doing exactly as you have told it to do, you may have just told it the wrong thing.

The reason that the "rotate while pressing a key" did not work is because of several reasons

You have a conditional statement in their "if (key_a).." but after this you must place some curly brackets to state exactly what to do if that condition is met. It must be:

Code:

if (key_a)
{
my.pan += 2 * time_step;
}
wait (1);



Also, having "my.pan += my.pan .." is pointless. the "+=" combination already adds whats on the right, to whats on the left.

So my.pan += my.pan + 2 * time_step;
should be, my.pan += 2 * time_step;

OR

my.pan = my.pan + 2 * time_step;

Hope it helps,
Adoado.


Visit our development blog: http://yellloh.com