Skip to main content
Participant
May 21, 2006
Question

help needed please...

  • May 21, 2006
  • 1 reply
  • 124 views
I am tryin to write some AS for a game which basically means when one of my mc's hits another and the enter key is pressed then mc2 should goto a frame...i think i have got the AND wrong?? can anyone help??


if (this.grindthin.hitTest( _root.spaceship.playergrindthin )) AND(Key.isDown(Key.ENTER) ){
_root.spaceship.gotoAndPlay("grind");
_root.score += 100;


thanks
This topic has been closed for replies.

1 reply

Inspiring
May 21, 2006
the and operator that you are looking for is &&