00:00
00:00
Newgrounds Background Image Theme

Thrll just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

HOW DO I CREATE SELF-DAMAGE?

789 Views | 2 Replies
New Topic Respond to this Topic

HOW DO I CREATE SELF-DAMAGE? 2002-07-30 14:51:25


I am working on a shooter-based game and have created the people that you can shoot where they progressively get worse and worse. But how do I make it so they can shoot back and cause the player damage? I'm familiar with buttons and tell-targets and clips and all that shite. So if anyone can tell me how to go about creating this please do. Thanks

Response to HOW DO I CREATE SELF-DAMAGE? 2002-07-30 15:27:05


OK I figured out how to give the player damage by creating a movie clip with a damage bar that moves up every so often. BUT! Now I need to know how to make so when I kill the guy before he shoots me how to make it go to a 'winner' frame. I'm not sure how because the enemy is in a seperate movie clip so the Go To action is kind of out of the question. does anybody know what I could do? If you need to see an example of my .fla email me at nicklohr@hotmail.com
if not please reply with any help to this post

Response to HOW DO I CREATE SELF-DAMAGE? 2002-07-30 18:53:17


the Go To action is not out of the question!

_root.gotoAndPlay (<name or number of 'winner' frame>);

this script goes on the enemy movie clip when he dies

the _root. bit basically tells flash to go to the main timeline and carry out the gotoAndPlay action.