Jake Albano avatar Jake Albano committed 15c6959

Enemy health bars fade out the further away the player is;
Upgraded Mage melee attack a small bit;

Comments (0)

Files changed (4)

obj/IfritConfig.xml

     </define>
     <verbose-stacktraces>true</verbose-stacktraces>
     <source-path append="true">
-      <path-element>C:\Documents and Settings\Chris\Desktop\Archive Dev\Ifrit\src</path-element>
-      <path-element>C:\Program Files\FlashDevelop\Library\AS3\classes</path-element>
+      <path-element>C:\Users\Jake\Documents\FlashDevelop\Ifrit\src</path-element>
+      <path-element>C:\Program Files (x86)\FlashDevelop\Library\AS3\classes</path-element>
     </source-path>
   </compiler>
   <file-specs>
-    <path-element>C:\Documents and Settings\Chris\Desktop\Archive Dev\Ifrit\src\Game.as</path-element>
+    <path-element>C:\Users\Jake\Documents\FlashDevelop\Ifrit\src\Game.as</path-element>
   </file-specs>
   <default-background-color>#FFFFFF</default-background-color>
   <default-frame-rate>30</default-frame-rate>
 								World.Mobs[l].freeze();
 								if (!World.Mobs[l].struck)
 								{
-									World.Mobs[l].hitpoints -= 5;
+									World.Mobs[l].hitpoints -= 6;
 									World.Mobs[l].struck = true;
 								}
 							}

src/ifrit/Enemy.as

 				this.healthRect.graphics.endFill();
 				this.healthRect.x = this.container.x + 2.5;
 				this.healthRect.y = this.container.y - 5;
+				
+				this.healthRect.alpha =  75 / Math.max(Point.distance(new Point(Game.man.x, Game.man.y), new Point(this.x, this.y)), 1);
 			}
 		}
 		

src/ifrit/FrostBolt.as

 		
 		override protected function update():void 
 		{
-			if (this.freeze.playing != "play")
+			if (!this.finished && this.freeze.playing != "play")
 			{
 				this.finished = true;
 			}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.