Commits

Jake Albano committed 6c2a254

Fixed bug where animation would never play certain frames;
Changed Player animation to rogue for testing purposes;
Fixed frame in rogueAtkWalk.png where annotation spilled over into viewable area;

  • Participants
  • Parent commits 07cc95c

Comments (0)

Files changed (6)

File lib/rogueAtkWalk.png

Old
Old image
New
New image

File obj/IfritConfig.old

-<?xml version="1.0" encoding="utf-8"?>
-<!--This Adobe Flex compiler configuration file was generated by a tool.-->
-<!--Any modifications you make may be lost.-->
-<flex-config>
-  <target-player>10.0</target-player>
-  <benchmark>false</benchmark>
-  <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
-  <compiler>
-    <define append="true">
-      <name>CONFIG::debug</name>
-      <value>true</value>
-    </define>
-    <define append="true">
-      <name>CONFIG::release</name>
-      <value>false</value>
-    </define>
-    <define append="true">
-      <name>CONFIG::timeStamp</name>
-      <value>'11/4/2011'</value>
-    </define>
-    <verbose-stacktraces>true</verbose-stacktraces>
-    <source-path append="true">
-      <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:\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>
-  <default-size>
-    <width>800</width>
-    <height>600</height>
-  </default-size>
-</flex-config>

File obj/IfritConfig.xml

-<?xml version="1.0" encoding="utf-8"?>
-<!--This Adobe Flex compiler configuration file was generated by a tool.-->
-<!--Any modifications you make may be lost.-->
-<flex-config>
-  <target-player>10.0</target-player>
-  <benchmark>false</benchmark>
-  <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
-  <compiler>
-    <define append="true">
-      <name>CONFIG::debug</name>
-      <value>true</value>
-    </define>
-    <define append="true">
-      <name>CONFIG::release</name>
-      <value>false</value>
-    </define>
-    <define append="true">
-      <name>CONFIG::timeStamp</name>
-      <value>'11/4/2011'</value>
-    </define>
-    <verbose-stacktraces>true</verbose-stacktraces>
-    <source-path append="true">
-      <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:\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>
-  <default-size>
-    <width>800</width>
-    <height>600</height>
-  </default-size>
-</flex-config>
 			
 			if (Input.isKeyDown(Input.LEFT))
 			{
-				man.graphic.play("walk");
+				if (man.graphic.playing != "attack") man.graphic.play("walk");
 				man.x -= 7;
 				man.rotationY = 180;
 			}
 			else if (Input.isKeyDown(Input.RIGHT))
 			{
-				man.graphic.play("walk");
+				if (man.graphic.playing != "attack") man.graphic.play("walk");
 				man.x += 7;
 				man.rotationY = 0;
 			}

File src/com/jacobalbano/Animation.as

 					if (this.frame == animation.frames.length - 1)
 					{
 						if (this.animation.loop)  this.frame = 0;
-						else this.animation = null;
-						return;
+						else
+						{
+							this.animation = null;
+							return;
+						}
 					}
 					else
 					{
 		 */
 		private function setRect():void 
 		{
-			this.buffer.copyPixels(storage, new Rectangle(this.animation.frames[this.frame] * this.frameWidth, 0, this.frameWidth, this.frameHeight), new Point(0, 0));
+			this.buffer.copyPixels(storage, new Rectangle(this.animation.frames[this.frame] * this.frameWidth, 0, this.frameWidth, this.frameHeight), new Point);
 			this.graphics.clear();
 			
 			this.graphics.beginBitmapFill(buffer, null, false, false);

File src/ifrit/Player.as

 	{		
 		public function Player(x:Number, y:Number) 
 		{
-			super( x, y, Library.IMG("mageAtkWalk.png"), 18, 25 );
+			super( x, y, Library.IMG("rogueAtkWalk.png"), 24, 25 );
 			this.friendly = true;
 		}