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

Flash Overhead RPG Tutorial - Part 3 - Killing enemies and Score System

Loading...

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

Uploaded by on Jan 19, 2009

SOURCE FILE AND HD VIDEO WILL BE AT...
http://adobeflashtutorials.tk/

This tutorial will show you how to make it so you can kill enemies, and make a scoring system.

--------ACTIONSCRIPT--------

For enemy

++++++++++++++++
onClipEvent(load){
_root.score = 0
}
onClipEvent(enterFrame){
if(this.hitTest(_root.toon.toonattack.toonrange)){
this.gotoAndPlay(2);
_root.score += 1;
}
}
++++++++++++++++

The fix for the attack

++++++++++++++++
onEnterFrame = function(){
if(Key.isDown(Key.SPACE)){
gotoAndPlay(1);
}
}
++++++++++++++++

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • @rastapunk420 lmfao

  • @unoriginality1

    From that statement alone, i conclude that you are an idiot. Good day.

  • nice tut but i want an apple computer too :(

  • i havnt been wachin ur vids but im making a game where inside my charecter i have it so when you press space it shoots my bullet my bullet has action in it that tell it whenit hits my enemy to tell my enemy to go to frame to but it dosnt i see you did somthin like that here but i no itd be diff cuz u have diffrent instance names i subscribed to you can u help me

  • its very good but the score its numb ... :| i put many enemy and score its numb

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