ForumsGamesFunction for ZXC

0 1462
SilverFlash
offline
SilverFlash
57 posts
Nomad

Now in my sniper game, i have SPACE assigned to show the scope when pressed. But when i replace SPACE with Z or X or C. It show compilor error. Here is the code


onClipEvent(enterFrame){
if(Key.isDown(Key.SPACE)){
this.gotoAndStop(2)
_root.cross.gotoAndStop(2)
_root.Background._xscale = _root.Background._yscale = 150
}else{
this.gotoAndStop(1)
_root.cross.gotoAndStop(3)
_root.Background._xscale = _root.Background._yscale = 100
}
}


if i replace that Key.SPACE with Key.Z. Why doesnt it work

  • 0 Replies
Showing 1-0 of 0