<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Making a Health System</title>
	<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/</link>
	<description></description>
	<pubDate>Sat, 19 May 2012 00:14:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Obituaries</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-251225</link>
		<dc:creator>Obituaries</dc:creator>
		<pubDate>Tue, 15 May 2012 18:18:32 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-251225</guid>
		<description>&lt;strong&gt;visit the site...&lt;/strong&gt;

[...]below you'll find the link to some sites that we think you should visit[...]...</description>
		<content:encoded><![CDATA[<p><strong>visit the site&#8230;</strong></p>
<p>[&#8230;]below you&#8217;ll find the link to some sites that we think you should visit[&#8230;]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fool</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-110089</link>
		<dc:creator>Fool</dc:creator>
		<pubDate>Sat, 25 Sep 2010 17:08:15 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-110089</guid>
		<description>It's easy.  I'll show you a few steps to get it working.

Create a MovieClip named DeathConditions and give it the instance name of DeathConditions.

Click on DeathConditions and open up the actionscript panel.  Add this code.

onClipEvent(load){
var HeroHP:Number = 100;
}
/*HeroHP can be whatever you want it to be named and 100 can be anything you want as well.*/

onClipEvent(enterFrame){
if (HeroHP &lt;= 0){
_root.gotoAndStop("GameOver");
}
}
/*If HeroHP is smaller than or equal to zero, it will play the GameOver frame (Which you have to name) on the root timeline.*/

As for the HP Bar, you might have to redo it if you want to use this code.

On the HP bar, give it this code.

onClipEvent(enterFrame){
_xscale = _root.DeathConditions.HeroHP;
}

And there you go.</description>
		<content:encoded><![CDATA[<p>It&#8217;s easy.  I&#8217;ll show you a few steps to get it working.</p>
<p>Create a MovieClip named DeathConditions and give it the instance name of DeathConditions.</p>
<p>Click on DeathConditions and open up the actionscript panel.  Add this code.</p>
<p>onClipEvent(load){<br />
var HeroHP:Number = 100;<br />
}<br />
/*HeroHP can be whatever you want it to be named and 100 can be anything you want as well.*/</p>
<p>onClipEvent(enterFrame){<br />
if (HeroHP <= 0){<br />
_root.gotoAndStop(&#8221;GameOver&#8221;);<br />
}<br />
}<br />
/*If HeroHP is smaller than or equal to zero, it will play the GameOver frame (Which you have to name) on the root timeline.*/</p>
<p>As for the HP Bar, you might have to redo it if you want to use this code.</p>
<p>On the HP bar, give it this code.</p>
<p>onClipEvent(enterFrame){<br />
_xscale = _root.DeathConditions.HeroHP;<br />
}</p>
<p>And there you go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathaniel</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-110025</link>
		<dc:creator>nathaniel</dc:creator>
		<pubDate>Sat, 25 Sep 2010 12:14:10 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-110025</guid>
		<description>somehow you can use the code nextFrame and im not sure where to use it tho</description>
		<content:encoded><![CDATA[<p>somehow you can use the code nextFrame and im not sure where to use it tho</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fool</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68097</link>
		<dc:creator>Fool</dc:creator>
		<pubDate>Wed, 19 May 2010 00:09:54 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68097</guid>
		<description>No problem man, email me at 
louaiali542@hotmail.com for any other help you need :D</description>
		<content:encoded><![CDATA[<p>No problem man, email me at<br />
<a href="mailto:louaiali542@hotmail.com">louaiali542@hotmail.com</a> for any other help you need <img src='http://www.awestyproductions.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68050</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Tue, 18 May 2010 21:17:42 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68050</guid>
		<description>Thank you so much! i never knew the thing about = is declairing and == is verifying, you saved me from alot of hassel :)!</description>
		<content:encoded><![CDATA[<p>Thank you so much! i never knew the thing about = is declairing and == is verifying, you saved me from alot of hassel :)!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fool</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68047</link>
		<dc:creator>Fool</dc:creator>
		<pubDate>Tue, 18 May 2010 21:08:22 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68047</guid>
		<description>Forgive my mistake, 
 

&lt;I&gt;So i’m not sure how your flash works but yeah, cn should be set to 0 if that’s how it is, and for whatever reason continues are gained, it would be _root.cn = 1;, and once three are acquired, your button will work.&lt;/I&gt;

_root.cn  (PLUS)= 1;  &lt;b&gt;Fixed&lt;/b&gt;

The wouldn't appear on the post.  I really don't know what's up but substitute the (PLUS) with the actual plus sign.</description>
		<content:encoded><![CDATA[<p>Forgive my mistake, </p>
<p><i>So i’m not sure how your flash works but yeah, cn should be set to 0 if that’s how it is, and for whatever reason continues are gained, it would be _root.cn = 1;, and once three are acquired, your button will work.</i></p>
<p>_root.cn  (PLUS)= 1;  <b>Fixed</b></p>
<p>The wouldn&#8217;t appear on the post.  I really don&#8217;t know what&#8217;s up but substitute the (PLUS) with the actual plus sign.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fool</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68045</link>
		<dc:creator>Fool</dc:creator>
		<pubDate>Tue, 18 May 2010 21:05:06 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68045</guid>
		<description>@Cameron

Your onrelease function is the problem.

on(release){
if(_root.cn = 3){
_root.gotoAndPlay(2)
}
}

The = sign means that you're declaring that it's 3.  In flash, = means declaring and == means verifying.

So your function isn't going to do much except set your cn variable to 3.

Change it to 

on(release){
if(_root.cn == 3){
_root.gotoAndPlay(2)
}
}

This way when 3 continues are earned, upon releasing the mouse off the object that has this code, it will try to see if cn is equal to 3.  And if it == 3, it will play frame 2 on the _root timeline.

So i'm not sure how your flash works but yeah, cn should be set to 0 if that's how it is, and for whatever reason continues are gained, it would be _root.cn   = 1;, and once three are acquired, your button will work.</description>
		<content:encoded><![CDATA[<p>@Cameron</p>
<p>Your onrelease function is the problem.</p>
<p>on(release){<br />
if(_root.cn = 3){<br />
_root.gotoAndPlay(2)<br />
}<br />
}</p>
<p>The = sign means that you&#8217;re declaring that it&#8217;s 3.  In flash, = means declaring and == means verifying.</p>
<p>So your function isn&#8217;t going to do much except set your cn variable to 3.</p>
<p>Change it to </p>
<p>on(release){<br />
if(_root.cn == 3){<br />
_root.gotoAndPlay(2)<br />
}<br />
}</p>
<p>This way when 3 continues are earned, upon releasing the mouse off the object that has this code, it will try to see if cn is equal to 3.  And if it == 3, it will play frame 2 on the _root timeline.</p>
<p>So i&#8217;m not sure how your flash works but yeah, cn should be set to 0 if that&#8217;s how it is, and for whatever reason continues are gained, it would be _root.cn   = 1;, and once three are acquired, your button will work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68015</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Tue, 18 May 2010 19:40:50 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68015</guid>
		<description>you need to move stop to after
_root.bluehp = 550

so its like

_root.bluehp = 550
stop();</description>
		<content:encoded><![CDATA[<p>you need to move stop to after<br />
_root.bluehp = 550</p>
<p>so its like</p>
<p>_root.bluehp = 550<br />
stop();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cameron</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68013</link>
		<dc:creator>Cameron</dc:creator>
		<pubDate>Tue, 18 May 2010 19:37:53 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-68013</guid>
		<description>i added a variable called cn which is continues which you collect and i added a button which should only work if you have 3 continues (cn) but it goes to the frame even when you dont, the code is

on(release){
	if(_root.cn = 3){
_root.gotoAndPlay(2)
}
}</description>
		<content:encoded><![CDATA[<p>i added a variable called cn which is continues which you collect and i added a button which should only work if you have 3 continues (cn) but it goes to the frame even when you dont, the code is</p>
<p>on(release){<br />
	if(_root.cn = 3){<br />
_root.gotoAndPlay(2)<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobestar</title>
		<link>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-59088</link>
		<dc:creator>Tobestar</dc:creator>
		<pubDate>Fri, 30 Apr 2010 11:44:38 +0000</pubDate>
		<guid>http://www.awestyproductions.com/tutorials/flash-tutorials/making-a-health-system/#comment-59088</guid>
		<description>Nope i fixed it and i just relized i spelt health wrong i'm an idiot :p</description>
		<content:encoded><![CDATA[<p>Nope i fixed it and i just relized i spelt health wrong i&#8217;m an idiot :p</p>
]]></content:encoded>
	</item>
</channel>
</rss>









<!-- analytics7 --> 
