Making A Game In Flash?
Sep 25, 2009Im planning on making a game in flash thats going to be kind of like a breeding game for birds.
View 2 RepliesIm planning on making a game in flash thats going to be kind of like a breeding game for birds.
View 2 Repliescurrently 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.
View 1 Repliesim trying hard to make a Game like the Pokemon TCG .
View 2 RepliesI'm currently working on a new game using flash CS5. The game is really a simple quiz game.Basically I have written up an xml file with dreamweaver andI want flash to search for the Child element and return the Subchild.
<items>
<Question>Legato is the musical term for what</Question>
[code].....
I am having a problem with my collision game. When I try to make collision between 2 objects, this occurs: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Level$iinit().
Here is my PHP Code:
package {
import flash.display.*;
import flash.events.Event;
import flash.geom.Point;
import flash.events.Event;
import flash.events.MouseEvent;
public class Level1 extends MovieClip {
[Code] .....
My flash file is at [URL].
how to make a interesting flash based game?
View 1 RepliesI'm making a small Flash game, which is rotating rings in an image to create a coherent picture. Think of the puzzles in Assassins Creed.I have three scenes set up, one with the puzzle, one with a fade to white transition, and one with a congratulatory screen.
I have this code to check if the orientation of the rings match, but I'm really new to actionscript so I'm not sure if it's right or not.
function orientationCheck()
{
if (center.orientation == 0 && ring1.orientation == 0 && ring2.orientation == 0 && ring3.orientation == 0 && ring4.orientation == 0)
[code]....
Unfortunately it keeps playing through the movie and not giving the player time to solve the puzzle.
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.
I am making mouse avoider game where idea is to avoid walls. and i want to create coins to stages and my problem is that i don't know how to make it so that when player collects coin he can go to goal but if he doesn't collect it he can't go to goal.. second option is that goal isn't seen if coi hasn't been collected.. Heres what I have done :
onClipEvent (load) {
var coin = false;
var game = false;[code]..........
I am making a word game app in flash for the touch screens, except I really don't know how to have the game recognize words. Is there some trick to doing this? To be a little more clear, I want to know how I can make the game recognize real words that the player will be putting together. I'm pretty sure I know how to have the game recognize the player's chosen letters, but that's really about it
View 2 RepliesI am in the progress of making a game....its based off of the TV Show, Charmed. I want to try and make it an online multiplayer game so three people can play online together as a team. Is there any possible way I can do this?
View 12 RepliesI'm making a top-down shooter game. I have keyboard input that moves the ship around and fires a laser.everything works perfect except that when the ship moves diagonal up left, or diagonal down right, the laser can't fire at the same time. It will work in any other direction, including the other diagonals. Just not those two
[Code]...
is this a common problem among movement in games? or do I just need to fix something?
I want to make a multiplayer flash game- something very basic, like each person controls a dot which they can move around (doing this as a learning experience, not because it seems like a great concept for a game ). I'm pretty new to PHP and mySQL, and don't have a lot of experience in making flash apps that interact with outside scripts... and here's the approach i've thought up so far.i design the swf so that every 30th of a second or so it checks an xml file on the server (http:servernamedata.xml), and also sends a request to the server to run a php script and sends it four boolean values (which keys the player is pressing). The php script runs- it loads a mysql database which has each players x/y coordinates, adjusts those coordinates according to the bool (if player is pressing keys), resends the x/y coordinates to the mysql database, and generates an updated version of the xml, which the swf running on each players client computer will check to determine where to draw each dot.So to get to the point, what i want to know is:
1: is what i described even possible?
2: if it can be done, is this a good way to go about it or is it horribly innefficient (i eventually want to make games more complicated than moving dots around, and have as much code run server-side as possible to prevent hacking/cheating)
3: if this is a possible and OK way to do this, what sort of AS3 script do you use to make a flash app have a server execute a php script?
I'm trying to make a simple animation where there is ten balls floating around the stage, I want to be able to click on any of the balls and "throw" them. I'd also like there to be a boundary around the stage so the balls bounce off this when thrown.
View 4 RepliesI seem to be going round in circles. I am making a little game with a character, I want it so when you pressed left and up it goes left and up at the same time. Does any one know how to do this?
View 1 RepliesWell i need help with two things! 1. i need help with an if statement that satisfies the following
[Code]...
I am in the progress of making a game....its based off of the TV Show, Charmed. I want to try and make it an online multiplayer game so three people can play online together as a team. Is there any possible way I can do this? If there is.
View 12 RepliesDynamic text box on one frame that displays your currunt score or points youve got then ive got a Finnish button that ends the game and goes to the next frame with:another dynamic text box that i want to diasplay the total score aka:Display the socre from previous frame can i do that how? details:Score on first frame is called scoreBox Total score display text on second frame called: totalScore
View 4 Replieshow to make a Space Invaders game (with a twist). I have previously made a game in Actionscript 1.0, which may be viewed at [URL] (press S to start the game after typing in your name).
I want to use this project as an exercise for learning AS 3.0, and I a cannot really see how I need to use separate AS files (Actionscript classes)
I heard that the .roots don't work anymore on AS3.
I am following this old tutorial, and cant get the scoring to work.[url]...
[URL]I have made the string and its movement is also done the problem i am facing is is to fix the position of the mouse on enterframe. As, you can see in the game(link given above), the level starts when the mouse touches the start button in the game. How can i implement that?
View 3 RepliesI'm doing a kind of plataform map, and now I need to make health (3 hearts, like Mario). I tried to do it with hittest but the hearts goes like crazy. Guess I need to make something like invulnerable or I don't know. What I want to do is three hearts, and, if the human touches a spike he loses a hearth.
View 5 RepliesIm pretty new at Actionscript 3.0 and I have to make a Spot The Difference game for school.. Now I followed a tutorial, but it's in AS 2.0 and I really cant get it to work in AS 3.0. Also, the tutorial isn't complete, so is there anyone that can help me any further with the code ?Here's the tutorial I followed:[URL]...
View 2 RepliesI'm currently making a game with over 100 levels. I have a level select screen where you can go to any of the 100 levels.I want it so that only level 1 is unlocked first then when you beat it level 2 unlocks and so forth.What's the best way to go about this? I was thinking an external text file maybe like this:
Level1:Unlocked:UnBeaten
Level2:Locked:UnBeaten
Level3:Locked:UnBeaten
and so on,then when the levels are unlocked and beaten updating the text file. Is this possible? Even making a class which stores level variables including beaten and locked.
I am an amateur programmer attempting to make an adventure game and I need a little help. The basic setup is a panoramic engine that loads external swf's when you click on a specific area. I need a way to globally store the states of the puzzle variables so that you can save your progress.The basic idea for my save game class is as follows:
[Code]...
I am making a game url...).I want you to be able to buy a gun from the store and then that goes under your gear which you can then choose to use before a match.I do not know how to make it so when you buy a Pistol and a rifle they show up in your gear, Then make it so that when you select the pistol then when you start the round, you will have the pistol and not the rifle.
View 2 RepliesI'm making a shooting game, would like the gun to flip _xscale when you move the gun past half the width of the stage. Here's the script I made which doesn't work and is probably not written correctly:
if(_xmouse >= Stage.width/2){
_root.gun_mc._xscale * -1;
}
just wondering if anyone can help me with this I'm making a platform game and wanted to make my game character run when user press the keyboard left or right. But I want my character to run like an actual person instead of just sliding across the screen. I have no idea where to start and I can only find tutorial that teach how to make a character move by just using - or + number of pixels but that's not what I'm actually looking for. I prefer that my game character to be more lively. Does anyone know how??
View 2 RepliesHow do i use the on(dragover), becuase i am making a simple randomness game,(to start off) because i have something that you can drag, and i want to make it if you drag the thing over it it takes you to a new keyframe.Here is the movie clip i want to be drug on: (nothing happens)
Code:
on(dragOver) {
gotoAndStop(3)
}
Heres the code that you can drag the item(works)
Code:
on(press) {
startDrag(this)[code].....
I am making my first game and it's my first time using actionscript. I am making a sniper game themed with the L96A1 sniper rifle from COD: Black Ops and the map nuketown. I'm in cs5 with ac3 and on my stage I have two movie clips that I'm working with. I'm not really sure if they're supposed to be movie clips though. Anyways, one is the gun, and the other is the zoomed in scope overlay thingy.
For now, I'm trying get the zooming in to work. I haven't done anything else though except collect graphics for enemies, the landscape, the gun, and the scope. I want to make it so that you zoom in and out by holding and letting go of the space bar. Also,I want to make it so that when you are not zoomed in, the gun moves horizontally at the bottom of the screen (aligned vertically with the cursor). And when you are zoomed in, the scope crosshair is the cursor.So my idea was to set the gun as the cursor and make it only move horizontally at the bottom of the stage and then make an event listener that listens to when the spacebar is pressed and when it is, disables the gun as the cursor (and makes it transparent to get it off the screen) and makes the scope the cursor [was transparent, now opaque and unrestricted(vertical movement also)].
I got as far as making the gun move horizontally at the bottom with the cursor. I cant get the event listener working because I don't really know how to go about changing the opacity of each movie clip and how to switch cursors. So I am asking how do I change the opacity and switch the cursors when the spacebar is held and then reverse those changes when the spacebar is released? Here's my code on an "actions" layer [I haven't done any animations yet, so everything is on frame 1. Also, I used a couple preset code snippets since I have no previous experience with actionscript (I can understand most of it though)]:
Code:
import flash.events.KeyboardEvent;
// make gun cursor
stage.addChild(gun);[code]..........
Here's a link to a zip archive with all the files used so far (I hope this google docs link works): link