ActionScript 2.0 :: CS3 Actionscripting A Fighting Game
May 19, 2009
I'm currently working on a simple fighting game on Flash CS3, coded with Actionscript 2.0.I have the basic setup done, just need to make a few more features, including more playable characters, move combos, and a Mortal Kombat style fatality. What I've already done is a simple one round game, with just 4 moves, low kick, high kick, low punch, high punch, jump kick, jump punch, and guard.The combos are not complicated, just pressing two keys at the same time (e.g. instead of just a low kick, pressing low kick and high kick simultaneously will activate a certain combo, instead of just low kicking or high kicking)[code]If a certain key is pressed, it will play an animation of the assigned action, but how do I make it so if two keys are pressed at the same time, it will play an altogether different animation?A Mortal Kombat style, finishing Fatality.I thought I had this down before, I made a code where a certain key (reserved for the Fatality move) can only be pressed when the opponent�s health reaches a certain level, e.g.[code]
I want to make a fighting game with my own character skins and those of my friends as a fun thing.I'd like it to have an intro, menu, character select, level select. I'd like the levels to be able to scroll and for the characters to have health metres. So what I am looking for is either a tutorial to build this up, or be able to look at a completed one and take it apart. I'll be able to handle the art on my own.
I am making a fighting game and I have made an attempt to make a kinda moving camera effect. Bascially two movieclips are inside a container movieclip. When one movieclip moves back the container scales down ( zooming out ) and when the two movieclips are close together the container mc zooms in. The containers _x is inbetween the two movieclips.
This is the best iv tried to explain it - sorry its probably hard to understand what im doing. Here is my attempt at doing it but its not very good i was wondering if anybody has got a better way of doing it.
im making a game for a site and i need to kno.. well, how do u make one punch button, but when ur facing the other way it punches that way...i think i need and if(frame=27) for example, but i dunno the code for the if frame is code
how to make a fighting game in flash and i love it.but i was thinking about making my fighting game a game where you can select a character to play as. so i wanted to know if anyone knew a tutorial on how to make a character selection screen for a fighting game.
this time i want to create a flash movie with about 150 pages that has in all of them a single form (input Text field) and then exports it to mysql database via php file. now my problem is this. how the hell can i tell as2 to build the textfield on each and every frame. onenterframe just keeps looping 12fps on the same frame.
I have created a simple movie clip with an instance name of "MOVIE". The movie clip contains a 2 stage tween. I have also labelled the frames of my movie clip. The first label is called "SHOW" and the tween goes from an alpha of 0% to 100%. The next label is called "HIDE" and the tween goes from an alpha of 100% back to 0%. I have a button on the stage in Scene 1. When I click this button, the movie clip plays - but only the frames labelled "SHOW". I have embedded another button within my movie clip. This button is called "close". I want this button to play the frames of the movie clip labelled "HIDE". Except this "close" button does not work. I think I have to use "_root" but I am not sure exactly how to phrase the actionscripting.
I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?
I'm making a game that populates user-designed cards into the game using an external xml file. My main class loads the xml file and then calls to the "Card" class, which wants to use the xml file. I've tried using this.parent and it just gives me a null object reference error. This is what I have so far: Main.as
currently i making this game and objects would spawn at random and be able to click but when de game starts itself, the spawn is correct but i am unable to make it stop when time goes to 0seconds.
I'm creating a game at the moment for my university course and it involves the player character jumping on top of boxs twice to break them as opposed to just once.What would be the most efficient/simple way of writing this in Actionscript 3.
I have recently started working with Mahjong game. But being not so experienced developer. I am just confuse about many aspects of it. So if anyone could throw some light on it. I have to build the game where there could be different number of tiles on screen. 32, 48, 64 , 80, 96, 112 and so on Now I have questions regarding the levels of blocks in this game. I mean the layouts of the game should be predefined or they should be dynamically created? Also I wanted to know how the surface of enable and disable symbols are created?
I was trying to make a game, and the character inside the game could swim. However, I only wanted him to swim in short bursts that refueled every time he hit the ground.
I am thinking of developing of a game like this: [URL]... Do you have any idea - by which game engine I may develop this type of games? I am not sure whether I have to use any 3d physics engine? I think JiglibFlash may be useful, but I am not sure.
how to make a game tutorial as farmville game tutorial to teach the user to play the game. i have recently involve in make that kind of game tutorial for its user by actionscript 3
im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:
Code: package { import flash.display.MovieClip; public class TamagotchiGame extends MovieClip {
[code]....
I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.
It's about the "Game Character Dialogues", It is used to instruct the user what to do, like what you see in BookWorm or Diner DAsh.I used dynamic text fields to generate these dialogues,but as I continued doing it. I found myself stuck.I have no idea on how to change the words when the "next" button is clicked. there will be no previous button. but the dialogue will replay when the character is clicked.
Is there a way to get this code to work? It's meant to count the seconds passed while playing the game and gives a bonus multiplier to the current score when the game ends. I don't know how to get the returned value to combine it into the multiplier int variable. Is there any way to get this code to work or is it completely wrong?
We have a bug in one game whereby the sound of the word repeats. Even when we use stopAllSounds - the sound is still kept in memory and you can hear it in the next activity - it's a disaster and kids get real angry.
I am making a Shooting game in flash actionscript 3 and have some questions about the flow of logic and how to smartly use the OOPs concepts.There are mainly 3 classes:Main Class: Initializes the objects on the screen.Enemy Class: For moving the enemies around on the screen.Bullet Class: For shooting.What I want to do is find out if the Enemy has been hit by a bullet and do things which must be done as a result ...What I am doing right now is that I have a ENTER_FRAME event in which i check collision detection of each enemy unit (saved in an array) with the bullet instance created, and if it collides then perform all the necessary actions in the Main class .. clogging the Main class in the process
well i made a game and in the game there is music at the first frame and when u lose to goes back to first fram and more music plays so they are overlapping.
the problem i get is that when the user selects "new game" it should restart the game. when it does this the toolbar is not reset. instead a new menu item is added (without removing the old one. so evertime the user hits new game, a new "file" menu is added). how do i make sure there is only 1 "File" menu? and im using actionscript 2
When game page loading , the flash game itself does not appear ( just white area as the holder of the flash game) untill the game almost finish downloading, then it appears .. This long waiting with just white area makes visitors leave, thinking there was nothing there.
where to get classes to putting together a board game, free of course.I do not want to use them actually but get the idea of how mine would incorporate into the classes.I have a board game where I want each square on the board to know if it is occupied or not, to change its color, and to keep track of what is actually happening with it.
I am working on a Heads up display and I am having some problems. The Problems are i cant seem to get Flash to do what I want...I am relatively new to flash but I know that I need to use action script 2.0 and Kismet to make what I want happen. (I am using the UDK and Scaleform for the development of the game I am helping with)Here is what I am doing.
I am making a cross hair. When I highlight an enemy it should turn red. When it Highlights an ally it should turn blue.I have made a heart beat Monitor that needs a animation for a heartbeat and Flat lining. The Background of the Heart beat monitor Changes color according what has happened to the player, If the player Gets hit the background of the heartbeat monitor changes color. If the Player gets hit too much the Heart Beat Monitor will flat line.Then I am making a radar for the hud.
So I made a movie, then I made a game to go along with it. I made the game in a seperate FLA. After I was done making the game, I went through to make sure I never used _root. I hadn't (I think I'm pretty sure, I've checked a couple times.) I basically copied all four frames of my game and put them in a movieclip in the original movie. However, when I exported this, the game...well, you can see for yourself. It just...doesn't work.Here's the FLA of the game and movie:
Mainly looking for pointers to the tutorials I am sure exist (but which I can't find). But I am also very open to any general or specific advice you may have to spell out for me in the thread. I am looking to build a PBBG (Persistent Browser Based Game) which, while single player, has some few multiplayer elements. Indirect interaction. One example of this is a commodities market - yes, the good old space trading, fly to one planet and buy, fly to another and sell scenario. I want every player to impact the inventory of each planet, and to have that inventory affect the buy/sell margins, etc. Other Indirect interaction would be bars et al, where players can chat, maybe (a BIG maybe) trade inventory and such. It seems direct, but it is not fighting one another or fighting at each other's side, etc.; so to me it is 'indirect' to the game. But that isn't why I'm here (feel free to impart any wisdom you have anyway, if you so desire); just an aside to explain a bit about the game.
Hello! I'm currently making my own flash game. Everything is going ok for now, but i've come across a problem. I want to add health regeneration things I have spikes which when touched takes 5 from your life, and i'm using the same code, but with the difference that it suppose to add 5 to your life, but it don't. So this is the code that i'm wrote:
Code: onClipEvent (enterFrame) { if (this.hitTest(_root.char)) {
if (_root.health.text < 100) {
_root.health.text += 5 ;
unloadMovie(this);
}
if (_root.health.text > 100) {
_root.health.text = 100;
unloadMovie(this);
}
else if (_root.health.text == 100) { unloadMovie(this);
} }
} So if for instance your health is 85 instead of adding 5 and making it 90 it adds 5 in the back and it becomes 855. What am i doing wrong?!