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 >

1 0 1 0 1 0 1 0 1
0 0 0 0 0 0 0 0 0
1 0 1 0 1 0 1 0 1

where 0 (path) is passable n 1 (objects)not....

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.

View 14 Replies


Similar Posts:


ActionScript 3.0 :: Making Beat Em Up - Character Stop Moving If The Attack Is Pressed And Once It Is Released Start Moving Again?

Nov 2, 2010

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].......

View 2 Replies

ActionScript 2.0 :: Drunk Moving Character To Be Able To Catch Character And Play A Scene From Within The Drunk Characters Movie Clip

Jan 13, 2004

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

View 2 Replies

ActionScript 2.0 :: Moving Background With Character?

Sep 12, 2004

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?

View 2 Replies

ActionScript 2.0 :: Character Keeps Moving While Being Ible

Jul 26, 2011

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?

View 2 Replies

ActionScript 2.0 :: Moving Background With Character

Sep 12, 2004

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.

View 2 Replies

Moving Character On X (left And Right) Only With Arrow Keys?

Aug 17, 2009

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.

View 2 Replies

Professional :: Create A Character With Moving Legs?

Apr 8, 2011

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?

View 2 Replies

AS3 :: Flash - Stop Character From Moving Through Walls?

Oct 9, 2011

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;

[Code]....

View 2 Replies

ActionScript 2.0 :: Key.isDown Function - Moving Character

Jan 3, 2010

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] .....

View 3 Replies

ActionScript 2.0 :: How To Get Character To Follow Moving Object

Mar 1, 2011

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 ?

View 0 Replies

ActionScript 2.0 :: Stop Playable Character From Moving

Jun 6, 2011

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)

View 1 Replies

ActionScript 3.0 :: Flash - How To Flip 2D Character When Moving

Mar 15, 2011

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.

View 7 Replies

ActionScript 2.0 :: Game Boundaries - Character Not Moving Across Border

Dec 13, 2009

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] .....

View 3 Replies

ActionScript 3.0 :: Platformer - Moving Character And Loading Levels

Jan 28, 2012

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.

View 11 Replies

Flash / AS3 Gaming - Character Moving Along Curved Terrain

Dec 3, 2011

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.

View 2 Replies

ActionScript 3.0 :: Moving Character - Unable To Use "Key" To Identify A Pressed Key

Aug 2, 2011

So I'm new to Flash, and I've found most people make player controlled characters in Flash move through

[Code]...

Since these are ActionScript 2.0 source codes, I think ActionScript 3.0 won't let me use "Key" to identify a pressed key.

View 1 Replies

ActionScript 3.0 :: Character Animation - When I Press Left Or Right Key - Draw Each Frame That Makes Character Movement?

Sep 24, 2010

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.

View 4 Replies

ActionScript 3.0 :: Regular Expression To Test If A Single String Character Has Both Upper And Lower Case Character?

Nov 27, 2010

Does anyone know the regular expression to test if a single string character has both upper and lower case character?

eg. All A-Z and a-z.

View 0 Replies

ActionScript 2.0 :: Make A Movieclip Of A Character And When The Character Is Dragg?

Aug 11, 2009

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.

View 2 Replies

Playing And Sending Stand-alone Swf ?

Jul 7, 2010

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.

View 1 Replies

Playing And Sending Stand-alone Swf?

Sep 3, 2010

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]

View 1 Replies

ActionScript 2.0 :: Players Can Only Stand On One Mc

Jan 28, 2003

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.

View 4 Replies

Professional :: Swf Plays As Stand Alone But Not In Site?

May 18, 2010

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.

View 1 Replies

ActionScript 3.0 :: Stand Alone App From CS5 And Keyboard Input?

Feb 18, 2011

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.

View 2 Replies

AS3 :: Packaging External Files Into One Stand-alone.swf ?

Jun 13, 2011

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.

View 1 Replies

Adobe Flash Stand-alone Player?

Jan 13, 2008

Does Adobe offer a flash stand-alone player that does not require a browser to play swf files ?

View 1 Replies

ActionScript 3.0 :: Building A Quiz That Is Not Stand-Alone

Dec 6, 2010

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]

View 2 Replies

ActionScript 3.0 :: Loading Image In Stand-alone Swf?

Feb 20, 2011

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"]

View 0 Replies

IDE :: Generate Exe Files From Stand Alone Application?

Oct 7, 2009

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.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved