Thanks Brucey :)
I like the until option. I must have missed it in the doco.
Yeah the 'if' syntax is a bit open to preference - the other option I was considering was along the lines of:
but I wasn't sure about readability.
I like the until option. I must have missed it in the doco.
Yeah the 'if' syntax is a bit open to preference - the other option I was considering was along the lines of:
If KeyDown(KEY_UP) starfield1.MoveUp() ElseIf KeyDown(KEY_DOWN) starfield1.MoveDown() ElseIf KeyDown (KEY_LEFT) starfield1.MoveLeft() ElseIf KeyDown (KEY_RIGHT) starfield1.MoveRight() EndIf
but I wasn't sure about readability.