ActionScript 2.0 :: Making An Escape Game?
Apr 4, 2011Well i need help with two things! 1. i need help with an if statement that satisfies the following
[Code]...
Well i need help with two things! 1. i need help with an if statement that satisfies the following
[Code]...
I am continuing my long switch from AS2 to AS3 finally... and I thought I'd start by making something simple. An "Escape The Room" type game, should be easy right? Just pointing and clicking? I loaded up my file for folks to look at.. I guess my big question is what I did wrong.. I thought i set up the buttons correctly and my Event Listeners.
nail_mc.addEventListener(MouseEvent.MOUSE_DOWN, objectFound);
But Flash doesn't like SOMETHING I did, I should be able to click and drag things if I knew what I was doing :P
i am making a escape the room in flash in by game i have 4 rooms with different objects inside and when I click on one of the object it disappears in to the inventory but I am having a problem with the inventory when move to room 2 and go back to room 1 the object i pick up disappears from the inventory back to the stage but i what the to stay in the inventory when i have pick it up and i what to be able to go to different room without the object returning i am working in AS3
View 1 RepliesI'm currently trying to make a basic escape the room game in Flash, and for some reason the last couples of entries I have made for the code aren't working. Right before adding these lines, everything worked and I already know that each object has been converted into a movie clip or button and has the correct instance name.
[Code]...
I've made an AS3 AIR proggie that works with PHP to look at a specific online directory of mp3s, get it's listing, and download to my local machine. It works fine, except when a song name has '&' in it. I'm not sure how to escape ampersands, or where the escape needs to happen - PHP or AS3? Here's the relevant AS3:
[Code]....
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.
View 1 Repliesim trying hard to make a Game like the Pokemon TCG .
View 2 RepliesI 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.
Im planning on making a game in flash thats going to be kind of like a breeding game for birds.
View 2 RepliesI 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'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 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 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? 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 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 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;
}