Where's problem in script
if (keycode==377) && (SetGraphicalVariable ("Up",0)) cBall.Walk (258, 86, eNoBlock, eAnywhere);
You need to enclose the conditions with ():
if ((keycode==377) && (SetGraphicalVariable ("Up",0))) cBall.Walk (258, 86, eNoBlock, eAnywhere);
Or, simply:
if (keycode==377 && SetGraphicalVariable ("Up",0)) cBall.Walk (258, 86, eNoBlock, eAnywhere);
However, What're you going to archive by setting the Graphical Variable to 0 in the condition?
Or, you're trying to check if the variable is 0?
In that case:
if (keycode==377 && GetGraphicalVariable ("Up")==0) cBall.Walk (258, 86, eNoBlock, eAnywhere);
So is this problem solved? Please post something I'm getting bored checking this out.
Yes, this is solved- thanks!