With the enemy dealing damage to the player every 3 seconds:
The current version of flash is CS5 Professional. I usually use Action Script 3.0 for making my games, and I've found it's easier to use timers from code snippets.
Notice: Do not put a lot of operations into a single timer, or it creates massive lag on your game. It is also not a good idea to make 1 timer 'tick' last 1 millisecond.
On today's technology.. every kid thinks it's a professional gaming-programmer.. wow... technology gives a little and took off a LOT...
SPECTRUM PLEASE COME BACK!
DaMercce 6 months ago
I realise this video is a few years old.
First off, great tutorials.
With the enemy dealing damage to the player every 3 seconds:
The current version of flash is CS5 Professional. I usually use Action Script 3.0 for making my games, and I've found it's easier to use timers from code snippets.
Notice: Do not put a lot of operations into a single timer, or it creates massive lag on your game. It is also not a good idea to make 1 timer 'tick' last 1 millisecond.
Crucrecs 7 months ago
i think you should put unloadMovie(this); in the enemy so you wont lose hp when you go to the same spot where the enemy was after it dies.
DragonReignLLC 11 months ago
@DragonReignLLC yeah, i did that.
KroltanMG 7 months ago
You should make an enemy following the character tutorial......
Zflash8 1 year ago
awesome tutorial when are u going to make part 7 i don't think ites out yet
theprinceofpiano 1 year ago
If you touch it once, then move away, it'll continue to sap 1 hp every 3 seconds.
ohhojijeg123321 1 year ago
also is there a way to ad a "damaged" state?
^^; sorry for the questions
Orbitdeathrants 1 year ago
how do you add a win /lose scene
I've tried many ways , this one worked for a few games I pieced together but not here:
if(_root.ehealth < 0){ //It equals 0 _root.ehealth = 0; onEnterFrame = function(){
_root.ehealth==0?gotoAndStop(2):0}
}
else if(_root.health < 0){ //It equals 0 _root.health = 0; onEnterFrame = function(){
_root.health==0?gotoAndStop(3):0}
}
}
maybe it was sth eplace i put it. took me days to figure this set of statements
Orbitdeathrants 1 year ago
why does ur warhammer shoot lol
jemar200 2 years ago
its the range of how close you can be to the enemy to attack them with it.
Manifest222 2 years ago
No offense but if you get attacked you'll be like poisoned
Xlasher1 2 years ago
all of these tutorials are good! keep up the good work
Nathan6195 3 years ago
thnx!!
its help me alot!!!!!!!!!
can u make a pistol?? that we hit 2times then enemy gonna be die
& SHOTGUN WHEN WE HIT THEN ENEMY DIE WITH ONE BULLET
sorry for my bad english
abujp1993 3 years ago
This comment has received too many negative votes show
I dont understand nothing
THIS IS NOT EVEN A RPG!!
YOU ARE OBLY A LOOOOOOOOOOOOOOOOSER
PenguinRocks360 3 years ago
Sorry about the yelling in the background. o.O
AdobeFlashTutorials 3 years ago
was it ur dad?
Xlasher1 2 years ago