PDA

View Full Version : Enemies



Gugis
July 24th, 2010, 07:20 AM
Hello flash developers. I need some help. I made flash platformer (using AS2). I made moving hero and coin to collect and i've stucked. I want to add enemies into game. It should work like this: if enemy is near it hits hero and hero lose hit points. same for hero and enemy. I know it's not so easy bu i hope i'll get help for game developing. Thank you, and sorry for my bad english.

Here's my source file

pradvan
July 26th, 2010, 11:44 AM
Here's an as2 enemy AI script (http://www.freeactionscript.com/2009/04/enemy-behavior-run-away-follow-player/) I wrote. Maybe you could use it...

http://www.freeactionscript.com/2009/04/enemy-behavior-run-away-follow-player/

-PR

yamoussoukro
August 10th, 2010, 06:06 AM
i'm working with totally same game as you (hero code, vcam). i have enemy if it hit hero (beer price increase). you can shoot enemy before it hit. check out
http://www.newgrounds.com/dump/item/fdfbd24b8ef9ea7bc74467446f4eaa9c