ActionScript 2.0 :: Character To Stand Still When Not Moving
Apr 15, 2002
i posted up lookin for flash tutes to make my game in flash 4 but i guess it's virtually impossible to do so..... well, now i decided to do it in flash 5. here's my concept >
it's basically a game controllling a character to move in grid filled with objects like so >
n i want d character to stand still when not moving and get to an animated frame of it moving when moved in whichever direction. i guess dat's all i need for now. please help me with this as like i've said, i kinda new to actionscripting.
im currently making an "AS3 beat em up" ala streets of rage or double dragon.Currently i have my character moving and a few animations done and i am trying to figure out how to make attacks work.I have some "basic" animation for his attack, but im not sure how to get it to work correctley.What happens is, if you press control (the attack button) whilst the character is walking he just keeps moving and is stopped on the attack frame.I want the character to stop moving if the attack is pressed and once it is released start moving again.
hero.gotoAndStop('still'); var left:Boolean = false; var right:Boolean = false;[code].......
I would like my character to move as if he was drunk I am unsure how to do that I am using the keyboard for his movement. I also have a character that moves at random I would like the drunk moving character to be able to catch this character and play a scene from within the drunk characters movie clip but I want this character to try and escape the idea is the drunk character gets points for how long he is able to hang on to this character
what i am trying to do is get the background to move with the characteri checked out a few tutorials.but not enufheres the deal..i have a character that can fly...and when the character goes upward...thebackground moves down to expose sky..then eventually black space with stars...does that make sense?
At the first scene of the game My hero character stands still when he's idle but at the second scene he keeps walking in one spot when he's idle. What's going on? Why are the scenes messing with the hero character?
what i am trying to do is get the background to move with the character.i have a character that can fly...and when the character goes upward the background moves down to expose sky..then eventually black space with stars also i want the background to stop..like when the background ends.
i got my character to move left, right, down and up wit this code:
[Code]....
My question is, how can i block the up and down movement? I tried simply deleting some part of the script to block does movement from the user. But then the script would not work properly : s Here is the uploaded page i'm working on: link.
I'm brand new to flash and want to create a character with moving legs. I've created the character with legs, but don't know how to get them moving properly. Does anyone know a good tutorial?
I want to stop the movieclips movement when it hits a wall (another movieclip). The example below works, but after the collision the movieclip 'blocks' all movement to the left...
For now the example with the leftArrow key;
variables to check the key, if it's hitting the walls and if it's moving or not:
var leftArrow:Boolean; var speed:int = 10; var hitting:Boolean;
I have a character with multiple animations by way of movieclips, and I'm trying to have it move using the Key.isDown function. Now, my character is moving correctly, but when the key is released, the animation keeps playing. I tried adding a stop command at the end of the walkcycle animation, but that just causes the character to stay frozen on the last frame of the cycle.
Here is the ActionScript Code: onClipEvent(load) { var direction = "left"; var speed = 2; } onClipEvent(enterFrame) { [Code] .....
I need to get my character to follow an moving object. I've got an object that's moving around in different directions and I'm wondering how do I get my character to follow the movements when standing on the object ?
I am trying to limit the area in which the character (mcMain) can move I want to be able to keep it in an area (mcBuilding) I also have another area (inwhich the character is not supposed to get to) (mcBackground). (Also I want to be able to to make a dynamic text box that starts at 100 then decreases by 5 when the enemy (mcEnemy) hits mcBuilding and also that it gets removed)
I have a mc called boy and I have an instance of that mc called boy_mc. I have figured out how to make his position change on the stage, but I cannot figure out how to do some other things.
Here is the code that I have so far: import flash.events.KeyboardEvent; stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); function keyPressed(evt:KeyboardEvent):void{ switch(evt.keyCode) { [Code] .....
I am trying to learn 3 things.
1. How do I make him be facing left when I push left and facing right when I push to right? 2. How to I restrict him to a certain area of the stage? I am going to have some buildings on the top and I don't want him to be able to walk past the street level. So basically I don't want him to be able to go off the stage or up some to be determined height. 3. When he walks up and touches a door on my stage, I want to jump to another place in the timeline.
I've been struggling with making boundaries with my game. I've managed to make boundaries, but in stead of my game character not moving across that border it just bounces back. Which is not the effect I want.
Here's my code onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { xspeed -= power; } if (Key.isDown(Key.RIGHT)) { xspeed += power; [Code] .....
I am currently working on a platformer using accelerometer to move the character and xml to load levels as so.. [as] level.x += (e.accelerationX*40); if (e.accelerationX > 5) { e.accelerationX = 5; } if (e.accelerationX * 40 < 3 && e.accelerationX * 40 > -3) { player.gotoAndStop(1); [Code] ..... And it is all added into one movieclip called level. My problem is when the character hits under a platform it will go up it which I don't want it too, I don't know how to fix it heres the gravity code.
I'm trying to create simple 2D action game, something similar to well known Fancy Pants Adventures :) I've been looking for answer for more than week and all I've found is [URL] which not answers the question. (I've found also moving on platforms that are rotated but that's not I'm looking for). I have also found great (and free!) flash game engine - CitrusEngine which I'm currently using, but, it doesn't provide moving hero along curved terrain. How to make hero moving along curved terrain like this one: [URL]. There are plenty of games like this (for ex. Fancy Pants or Robot Unicorn Attack) where main character moves along the curved terrain but I can't find answer how can I do that.
I have a 9 frames image of a character.In other language generally i used to make character animation by looping the array consisting of different frames and drawing each frame when pressing key.What i want to do is when i press left or right key, i want to draw each frame that makes character movement and update x coordinates of frames, and it will appear as character is moving.
i was wondering if any of you out there could tell me how it is possible to make a movieclip of a character and when the character is dragged about the screen by the curser, how do you make the characters arms and legs swing about in a realistic fashion.
i've got Flash installed and i use it to create a fancy thing. a .swf. A regular swf.When i open the swf straight from a folder, it opens in "Flash Player".not in any browser.When I send the swf to my boss, or anyone that does not have the Flash Application installed, it doesn't quite work right.They DO have the latest browser flash player plugins installed and it works if they drag the swf into the browser.BUT how can we get it to play stand alone, the same as I can do. It seems you could download the Flash Player for the desktop.
I have recently been having problems with my swf file. When i export it by hitting "command enter" it seems to export fine. But then I realized that when i exit flash and click to view the swf it opens up in flash instead of the flash player as it normally does. The other implications of this is that when I send the swf file to someone who doesn't have flash (but is able to play swf files) they are not able to open the files because it wants to open up in flash.The file is a simple web banner that is limited to 40kb.
PREVIOUS POST WITH SIMILAR PROBLEM "Postby Haungo on Wed Jul 07, 2010 3:28 pm
OK.. so, i've got Flash installed and i use it to create a fancy thing. a .swf A regular swf. When i open the swf straight from a folder, it opens in "Flash Player".. .. not in any browser.When I send the swf to my boss, or anyone that does not have the Flash Application installed, it doesn't quite work right. They DO have the latest browser flash player plugins installed.. . and it works if they drag the swf into the browser. BUT how can we get it to play stand alone, the same as I can do.
It seems you could download the Flash Player for the desktop.. but where? how ?
REPLY "Postby Eye for Video on Sun Jul 11, 2010 12:23 pm
Look into creating a Flash "Projector" file. It's an exe, executable file and can self-contain the player you need to play the Flash without opening the browser.In the "Publish" setings, check the projector box. Here's a link to one tutorial but their are lots more, Google "Flash Projector files"[URL]
I have a stick figure fighting game I'm currently working on. I've animated the moves and the walking, ect. But now I wanna make it so the players can only stand on one mc, GameArea.I tried the script that came with part of the tutorial, but nothing happen:[code]If this way isn't a possible, then I'd just like to limit the players on how high/low they can move.
I'm a bit frustrated as I've created a Flash movie with an embedded video.The SWF file works fine when I play it as a stand alone file but when I use the file inside my website, the video portion does not play.I have placed the video file and the Flash file in the correct folder on my site.
I have in a previous project published a game as a standalone app and run it full screen. It would allow users to put their info in for high scores.
Now i am working on another game that will be published as a standalone app. It will need to be full screen and have an entry form at the end for high scores. It does not seem to allow the keyboard to enter text in an input box. Is this true?
Note, this is not an swf played through a browser, but an actual .exe generated from Flash CS5. If this is true, is there a workaround. I need if full screen with keyboard input.
I've created a very large scale Flash game and have apparently had a massive oversight - the flash portal websites wishing to host my game need it in one stand alone .swf. However, the problem is I load everything externally. I load the level data from .plist files, the images from .png and the sound from .wav, all located in folders in the .swf directory. They're loaded through Loader's and URLRequest.
Is there any way I can embed these so it will run as a stand alone? Preferably an easier way than individually writing embed lines, as there are 1000s of files.
I've looked online at different quiz-building tutorials, but almost all of them are for stand-alone quizzes. I am adding the quiz as part of a whole interface design. When you click on one of the sign buttons I have on it, a mask will appear and the first four quiz questions will appear. Once those are answered, the next four will appear (probably when they click "next" or something). When I get to the end, I want the results of their quiz to appear.I want to try to use the code my teacher wrote for me so I don't have to build anything extra.if that doesn't work, can I embed a .swf into the file I'm working on? I need this quiz; everything else in my project is done (aside from some tweaking) and I need this finished AND working by Dec. 17.[code]
I'm trying to load this captcha image inside Flash:It loads OK when I run the swf inside Flash CS5 Editor, but when I open the swf with stand-alone Flash player, I get this error:IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2035: URL Not Found. URL:Challenge.aspx?cid=385809c9-d89b-4f01-9e8c-b9e5f9c4dc71&w=200"]
Is it possible to generate an executable file from a flash executable file? A client has requested a quote from that will allow them to do the following: This whole thing needs to reside on a CD/DVD.
There is a bank of 10 images. The user selects any 5 images they want. The user saves those 5 images as a slideshow / powerpoint / executable file?
Are there other utilities that can do this kind of thing? Is flash the wrong development tool? Are there other tools out there that perform this type of function?
Google has provided no results for me. I've often lurked through the forums here and I thought that maybe the community here may have some answers as I can't seem to find them anywhere.