Flash Overhead RPG Tutorial - Part 6 - Enemy attacking every 3 seconds
Uploader Comments (AdobeFlashTutorials)
All Comments (16)
-
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!
-
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.
-
@DragonReignLLC yeah, i did that.
-
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.
-
You should make an enemy following the character tutorial......
-
awesome tutorial when are u going to make part 7 i don't think ites out yet
-
If you touch it once, then move away, it'll continue to sap 1 hp every 3 seconds.
-
also is there a way to ad a "damaged" state?
^^; sorry for the questions
-
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
-
its the range of how close you can be to the enemy to attack them with it.
Sorry about the yelling in the background. o.O
AdobeFlashTutorials 3 years ago