Hiho..
i dont know if this work with C-Script.
But you can define your keys like this:
var RIGHT, LEFT;
function CheckKeys()
{
RIGHT = (joy_force.y > 0);
LEFT = (joy_force.y < 0);
}
Then you can use like this:
if(RIGHT - LEFT)
{
c_move (my, vector(6*time_step,0,0), nullvector, GLIDE);
}
Ah..and in your code you can leave the wait(1).
In a if-decision you dont need a wait(1).
Hope this helps. The code works for me in Lite-C. I hope in C-Script too.
Greetings
Schmerzmittel