19 Forum Posts by "CyberMonkey30"
i was wondering how to program an in game punch animation. FlashDevelop AS3
I have created a punching animation how do i add that to my game
i need help finding out where to start with programming this one.
FlashDevelop.
Like Castle Crashers.
i need help putting a photoshop animation into my game for the punch animation
At 11/26/14 10:16 PM, Diki wrote:At 11/26/14 10:09 PM, CyberMonkey30 wrote: can you help fix my code.Your second package is missing the closing } brace.
added the closing bracket where
At 11/26/14 10:02 PM, MSGhero wrote:At 11/26/14 09:52 PM, CyberMonkey30 wrote: this is still not working i keep getting this response.Read what it says. You're missing a }. Flashdevelop is working perfectly, your code is what's incorrect.
can you help fix my code.
package
{
import flash.display.MovieClip;
public class player extends MovieClip
{
public var grav:int = 0;
public var floor:int = 450;
public function player()
{
this.graphics.beginFill(0, 1);
this.graphics.drawCircle(this.x, this.y, 25);
this.graphics.endFill();
}
public function adjust ():void
{
this.y += grav;
if(this.y+this.height/2<floor)
grav++;
else
{
grav = 0;
this.y = floor - this.height / 2;
}
if (this.x - this.width / 2 < 0)
this.x = this.width / 2;
if (this.x +this.width / 2 < 800)
this.x = 800 - this.width / 2;
}
}
}
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
public class Main extends Sprite
{
private var aDown:Boolean = false;
private var dDown:Boolean = false;
private var char:player = new player();
public function Main():void
{
char.x = 500;
char.y = 300;
addChild(char);
stage.addEventListener(Event.ENTER_FRAME, checkStuff);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keysdown);
stage.addEventListener(KeyboardEvent, KEY_UP, keysUp);
}
public function checkStuff(e:Event):void
{
if (aDown)
char.x -= 5;
if (dDown)
char.x += 5;
char.adjust();
}
public function keysDown(e:KeyboardEvent):void
{
if (e.keyCode == 65)
aDown = true;
if (e.keyCode == 68)
dDown = true;
if (e.keyCode == 87&&char.y+char.width/2===char.floor)
char.grav = -15;
}
public function keysUp(e:KeyboardEvent):void
{
if (e.keyCode == 65)
aDown = false;
if (e.keyCode == 68)
dDown = false;
}
}
At 11/26/14 09:28 PM, Diki wrote: Frankly, I don't know why that isn't working; it's rather odd. I've never had to manually configure the Flex SDK for FlashDevelop to work before; it's always been done for me by the installer (though, including the SWC path in the "external libraries" setting should work all the same)
this is still not working i keep getting this response.
At 11/26/14 08:54 PM, Diki wrote:
did not work re downloaded it did not give the option to auto configure
At 11/26/14 08:31 PM, Diki wrote: You don't have Java installed, which the Flex SDK requires. Just head over here and download and install it, and then it will work.
still not working. Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\Owner\Documents\Platformer\platformer\platformer.as3proj" -ipc 6d0a10bb-71bd-4d5f-a6bd-043f7769319a -version "4.6.0; 3.1" -compiler "C:\Program Files (x86)\FlashDevelop\Tools\Flex Sdk" -library "C:\Program Files (x86)\FlashDevelop\Library"
Building platformer
mxmlc -load-config+=obj\platformerConfig.xml -debug=true -incremental=true -swf-version=10 -o obj\platformer635526186659533214
Starting java as: java.exe -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=US -Dapplication.home="C:\Program Files (x86)\FlashDevelop\Tools\Flex Sdk" -Dflexlib="C:\Program Files (x86)\FlashDevelop\Tools\Flex Sdk\frameworks" -jar "C:\Program Files (x86)\FlashDevelop\Tools\Flex Sdk\lib\fcsh.jar"
INITIALIZING: Adobe Flex Compiler SHell (fcsh)
Starting new compile.
Loading configuration file C:\Program Files (x86)\FlashDevelop\Tools\Flex Sdk\frameworks\flex-config.xml
Loading configuration file C:\Users\Owner\Documents\Platformer\platformer\obj\platformerConfig.xml
C:\Program Files (x86)\FlashDevelop\Tools\Flex Sdk\frameworks\flex-config.xml(56): Error: unable to open 'libs/player/10.1/playerglobal.swc'
</external-library-path>
Build halted with errors (fcsh).
(fcsh)
Done(1)
At 11/26/14 08:31 PM, Diki wrote: You don't have Java installed, which the Flex SDK requires. Just head over here and download and install it, and then it will work.
all i have to say now is god bless your soul angle child. you are the nicest person that i have met virtually. you are great
At 11/26/14 08:08 PM, Diki wrote:At 11/26/14 07:04 PM, CyberMonkey30 wrote: i love your gamesAt least someone still plays those silly things I made ten years ago.
something came up i need help.
At 11/26/14 04:18 PM, Diki wrote:
thank you so much for the support and i love your games
At 11/26/14 03:04 PM, Diki wrote: Looks like you have FlashDevelop configured to use Adobe Flash for compilation. To ensure that FlashDevelop won't do that, go to Project > Properties and make sure that "Compilation Target" is set to Application.
it looks like this after i did everything.
At 11/26/14 03:04 PM, Diki wrote: Looks like you have FlashDevelop configured to use Adobe Flash for compilation. To ensure that FlashDevelop won't do that, go to Project > Properties and make sure that "Compilation Target" is set to Application.
now what, i did it can i open it in air or flash. Thank you.
it looks like this.
At 11/25/14 06:43 PM, Sam wrote:At 11/25/14 06:18 PM, CyberMonkey30 wrote:Flash Builder or FlashDevelop?At 11/25/14 07:58 AM, Diki wrote: What exactly are you having a problem with?testing a project in flash builder. it says that it needs an external software.
FlashDevelop
At 11/25/14 07:58 AM, Diki wrote: What exactly are you having a problem with?
testing a project in flash builder. it says that it needs an external software.
I really need help testing games without flash professional; can someone help me in this disaster.
I was thinking to use flash developer ??

