Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

how to make a flash game with score and health

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,541
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 25, 2009

this is code for char:onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
this._x -= 15;
this.gotoAndStop("left");
}else if(Key.isDown(Key.RIGHT)){
this._x += 15;
this.gotoAndStop("right");
}else if(Key.isDown(Key.DOWN)){
this._y += 15;
this.gotoAndStop("down");
}else if(Key.isDown(Key.UP)){
this._y -= 15;
this.gotoAndStop("up");
}
}

var for health is:health
var for score is:score
code for frame is: _root.score = (what score you whant it)
_root.health =(what health you whant it)
to hurt him do a dot and put this code on that:onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.health--;
unloadMovie (this);
}
}



:)

Category:

Music

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • its working

  • this doesnt work!!!

  • booo

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more