ActionScript 2.0 :: Flash5 : Create A Little Adventure/flash Movie Game?

Aug 17, 2010

I'm trying to create a little adventure/flash movie game.. where you click around on things and something happens, but the main idea is a little quest where you trade items with few NPC's around the game to get to the end..

As an inventory I have plain drawn inventory, and invisable items/movie_clips on it, that only go visible once the NPC's did action of giving you them and making it visible in your inventory spot (I know, stupid but I'm a noob).. The reason for this is cause I wanted the Quest Items to be as Drag/Drop items while giving to NPC's, not just press/dissapear routine thing..

What I'm having problem with is, saving quest items the Character got from the NPC's.. (in other words they dissapear once the character goes back to the FIRST scene/frame of the game) What I'm looking for is a code that can check if in previous scene/frame were those movie clips visible or invisable, and apply that to the next scene.. so that the items/movie_clips wouldn't dissaear when switching between scenes/frames..

here is an example of what I'm doing, but with out the nessasery code for checking, so it doesn't work properly from the second frame and when you go back to the first one again: here is a link for the flash on deviantArt:the codes that I'm using are multiply drag&drop that I found:[URL] Code in frame for multiply drag&drop:

stop();
_root.blue_mc._visible=false; //makes blue ball invisable at start
_root.green_mc._visible=false; //make green ball invisable at start

[code]....

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Create An Inventory For An Adventure Game - Getting Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

Jan 17, 2010

Im trying to create an inventory for an adventure game (escape the room esque interface).Basically I have an array inventory system - you click on an object that is listed in the array,it moves the item off the main screen and into your inventory (bottom of the screen) and resizes it. Then you can use the object as an inventory object.This is fine on frame one (where all the items are at the moment).But when you move to another frame and then come back to frame one the items are back on the screen in their original position but now non clickable(aswell as being in your inventory working how they should). If i put the items in frame two and no items in frame one I get the following message and the items become unclickable:

Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Inventory/makeInventoryItems()
at InventoryOne

Im guessing the errors are because the items don't exist on all frames but the code does as it is in the games properties as the class type (class Inventory), but i have no idea how to get around it.

Inventory/makeInventoryItems() is the following AS code.

Code:

function makeInventoryItems(arrayOfItems:Array) {
for(var i:int=0;i<arrayOfItems.length;i++) {
arrayOfItems[i].addEventListener(MouseEvent.CLICK, getItem);[code]............

View 2 Replies

Actionscript 3 :: Create A Multi-level Dungeon Adventure In Flash CS4?

Apr 6, 2011

I'm trying to create a multi-level dungeon adventure in Flash CS4. The layout is an instance created of a symbol called Level, within the symbol are multiple wall subsymbols (wall), instances of Wall. There is a collision routine to stop the player walking through the walls, called from Wall.As.Level is drawn about the centre point (0,0).When I create an instance on the stage of Level (level), the collision tester is using the xy coordinates for the walls drawn about 0,0, not the "real" xy where it's appearing on the stage. So what I need to know, is how to "update" the xy for each wall subsymbol with the live stage information, overriding the XYs drawn in the parent. It has to be updated unfortunately (I can't keep it static), as the levels are big so have to scroll.

View 3 Replies

ActionScript 3.0 :: Text Based Action Adventure Game?

Nov 3, 2011

I'm currently working on an action adventure game and have run into some issues. I am using flash CS4 and AS3. On the stage I have created a user input text field with the instance name of textbox and a button with the instance name of btn. I'm trying to set it up so that when the user types in a word that word is cross referenced with an array and a function is run. I have noticed that some times the functions are not run in the order there typed. For example if I type "enterdoor. lookaround." Than the following is traced.

" you have entered the door.
.
you are looking around, but don't see anything.
. "

Which is good but if I reverse the order and type "lookaround. enterdoor." then I receive the following.

"you are looking around, but don't see anything.
.
.
you have entered the door. "

Also if I were to type "gobacklookaroundenterdoor" then the following is displayed.

"go back you have entered the door. you are looking around, but don't see anything."

Notice that the function "enterdoor" is run before "lookaround" even thou "lookaround" was typed first. Also if I were to type "enterdoorlookaround enterdoorlookaround" then the following is displayed.

"you have entered the door.
you are looking around, but don't see anything.
you are looking around, but don't see anything.
you have entered the door. "

I cant seem to figure out why the functions are not run in the order they are typed by the user. Not sure if this helps but I have determined that if a function is typed 3 times or more then it only returns the function twice. For instance if I were to input "enterdoorenterdoorenterdoor" then the following is displayed.

"you have entered the door.
you have entered the door. "

I would also like for the user to have the option of typing a function as many times in a row as needed. It seems to me that I'm missing some thing simple. I was thinking if I change the commands "array" to an "associative array" it might process the functions in the correct order. It seems to me that the commands array is being compared to the inputholder array.

this.stop();
import flash.events.*;
btn.addEventListener(MouseEvent.CLICK,textChanged)

[code]....

View 1 Replies

ActionScript 2.0 :: Creating A Matching Pairs Game In Flash5

Jul 10, 2002

I want to create a matching pairs card game within flash. I have found actionscript for a matching pairs game but it does not work the way i want it to. I would like to be able to match a Picture with a word as opposed to 2 pictures the same.

View 4 Replies

ActionScript 2.0 :: Properties - Create A Flash5 Menu Tree - Use Scope To Eliminate

Dec 6, 2002

I am attempting to create a Flash5 menu tree, following the Flash4 tutorial at this [URL] I have created the two MC's (a "topMenu" and a "subMenu"). However, when I place the two MC's on the first frame of _root , the properties of the associated buttons get screwed up if I place the two MCs in a verical alignment. It appears that Flash5 makes a consolidated object, such that the _height property for the second MC is determined by adding the _height property of both MCs.

1. Could you confirm that this is what's taking place?
2. Is there a way to use Scope to eliminate the problem?
3. Other recommendations?

NOTE: if you move the lower MC out to the side, the problem disappears. Although a workaround, this seems to be a poor way for the program to function.

View 3 Replies

Flash5 :: Artifact When Exporting As Avi Movie?

Aug 16, 2011

i am having problems with artifact being left on the screen when playing in quicktime player when i export my animation as an avi movie.

View 1 Replies

ActionScript 2.0 :: [Flash5]Using Variable As Movie Clip Name?

Dec 3, 2002

I want to cycle through several movie clips for a training application. I plan to use an array to hold the clip names, and a variable (CurrentClip) to set visibility and allow me to use a single pause/ play button throughout. For the visibility, I've found that...
CurrentClip._visible = false; does NOT work. But... setProperty (CurrentClip, _visible, false); does work.

View 2 Replies

ActionScript 3.0 :: Create A Tamagotchi Game Type Game?

Mar 28, 2012

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.

View 2 Replies

ActionScript 3.0 :: Flash "Choose Adventure" Framework Or Library?

Feb 23, 2011

I wanna make a flash game at the style of a "Choose your own adventure" book. The ones where you read make decisions and arrive at different endings. The thing is that I want to know if there is a set of librariess or a framework to make this type or game or even an app that produces an XML facilitating this task or do I have to code this all from scratch?.

View 5 Replies

Cs3 :: Create A Flash Game?

Aug 11, 2010

I want to create a flash game (a simple drag and drop, probably) and at the end of it, if the user wins, I wanna send him/her to a "certificate" page where there will be a certificate that I have designed. The user will then have the option of printing this certificate.

View 1 Replies

ActionScript 3.0 :: Create A 3D Game In Flash CS4

Sep 2, 2009

how to create a 3D game in flash, sort of like a FPS game? I've used 3D objects, I just don't know how to control them.

View 1 Replies

Best Way To Create An Icon For Flash Game?

Aug 11, 2010

I'm talking about the icons that Flash game websites have to show each game.My method was play my game, take a screenshot, cut out the game part of the screenshot, shrink it to size, save as an image.

View 1 Replies

Create Flash Maze Game

Mar 10, 2011

I am creating a Simple Flash Maze Game,and i have 2 'Movie Clips' that i want to react when the collide.IE. When 'CHAR_LVL1' (A Movie Clip, controlled with the Arrow Keys) comes into contact with 'WALL_LVL1'. I want it to 'gotoAndStop(27);'[code].I am using Flash CS5 and Action Script 2.0

View 1 Replies

Flash :: Using Papervision To Create A 3d Game

Oct 22, 2010

now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the status of the character. is there any cleaner way of doing it?

View 1 Replies

How To Create Flash Game On Facebook

Aug 26, 2011

What would be steps and technology needed to create a flash board game on Facebook? - something like checkers?

Will all game attributes - like ability to keep score, resume broken games and invite friends?

View 1 Replies

ActionScript 2.0 :: Create A MTG Game In Flash?

Dec 5, 2004

Im trying to create a MTG game in Flash, and with creating a new MC, I've discovered a problem.

library = [1, 2, 3, 4, 5, 6, 7];
i = library.length;
d = 1;

[Code]....

I can't change the ._x value of a new MC called "hand"+d, d just being one more new MC. I've tried many things to try and fix this but I have not succeeded. The underlined line is what needs to be fixed.

View 2 Replies

Actionscript 3 :: Replace A Movie A Movie In Flash - Dress Up Game?

Dec 8, 2010

I have a flash movie instance name "headArea" I want to load a external swf and swop the movie inside the headArea - replacing the head.I have the following code:

clickIt.addEventListener(MouseEvent.MOUSE_DOWN, swopHead);
function swopHead(event:MouseEvent):void {
var loadit = new Loader();

[code].....

View 2 Replies

ActionScript 3.0 :: Create A Top Trumps Game In Flash?

Apr 19, 2011

I am trying to create a top trumps game in Flash AS3 and so far haven't got much working.The game is about supercars and there is 58 of these cards.

Each card has 5 values: speed, 0-60, power, weight and cost (Some of these values were not easy to find out.Ideally I want the player to click the play button and be taken to a page that's already been built. Next I want AS3 to select 30 of these 58 cards and split them evenly between the AI and player. Possibly using a variable?I'm thinking that I'll need a continue button for after the player has selected a value and have already wrote the code to compare the values.

View 9 Replies

Flex :: Create A Dress Up Game In Flash?

Oct 13, 2010

I would like to know how can I create a dress up game in Flash/Actionscript where users can click on (not drag and drop) the available accessories/clothing and the avatar will display with the new selection immediately, and I can save the settings and take snapshot of the avatar in the new clothing selection. It will be good if there is references/tutorials that I can follow.

And secondly, may I know how do I save the selection, is it via xml or json or database? It will be good to store the clothes/accessories dynamically.

View 2 Replies

Professional :: Create A Flash In Game Popup On The Same Frame?

Oct 17, 2010

How do you create a flash in game popup on the same frame?I need to make a popup in flash on the same frame. Basiclly like you reach the frame and randomly (I know how to do random stuff) a popup might appear saying like you got a prize; and I want the stuff in the back to stay the same.

View 11 Replies

ActionScript 3.0 :: Create Chess Game Using Adobe Flash CS3

Feb 23, 2011

I want to develop a web application that when a user is login the game will automatically search for oppents onlinethat are accessing the same website. I want to design a chess game that does not contain any AI programming. What I want is that a simple chess setup that online user can only play.

View 1 Replies

ActionScript 3.0 :: Create Something To Switch Vehicle On A Flash Game?

Sep 6, 2011

I know how i can create a button but how do i make it activate different vehicles before the race starts.

View 5 Replies

Flash :: Create Isometry Imitation In 2d Racing Game?

Jul 12, 2010

How can I modify 2d racing game to seem like isometry? Flash + ActionScript3

ScreeShot:: The game is totally in 2d. Car moves like it should and while it drives the ground everything is fine.I've added a grey ramp. Now the car should move like the arrows are showing, creating illusion of a 3d (isometry).

Ramp is divided in 3 sectors

-first,sector to the right (where the car is currently situated);

-second,sector to the left;

-third, sector on top;

Plus I need the car,to jump out from the ramp when the speed is high. I reffer to old scholl game Rock'n'Roll Racing (Blizzard's game for Sega)So the questions are

1) How should I change car's angle and velocities(velocityX and velocityY) when driving on the ramp ?

2) How can I initiate jumping out of the ramp? For example like in Rock'n'Roll racing? or how Blizzards essentially did it?

View 1 Replies

ActionScript 3.0 :: Create A Side Scroll Game In Flash?

Nov 24, 2011

create a side scroll game in flash..and i dont know whats the easiest and best to do it,, if i can i wish my game can access to a database to save and load it.

View 5 Replies

As3 :: Game Development - Create - Append And Read A Txt File With Flash

Jan 16, 2012

I am kind of new to Flash and only really know really basic stuff. (Scenario) I have made a local game in Flash CS3 Professional for my Advanced Higher Computing project for school which is almost completely glitch free. But my teacher says it needs a file handling feature, such as a high score feature in it to make it AH standard. I want to make a simple high score feature where it takes the final score, asks the user to input their name, and add it to a .txt file. Since the computers at my school are very limited, I cannot use programs like Adobe AIR or PHP or anything like that so I need it to be simple. (Question) So I really need a full tutorial (where to put the coding, layout and everything) to:

Check if there is an existing .txt file called (for example) "High Score.txt" If there is, load it. If not, create a .txt file called (for example) "High Score.txt" to the desktop. Take the users input and place it with their final score after it. (Optional but not required) Arrange the scores in order of highest to lowest or display the top 5.

View 1 Replies

ActionScript 2.0 :: Create A Simple Flash Mathematics Game For Mobile

Jul 21, 2010

I am a newbie in flash actionscript. My assignment needed me to create a simple flash mathematics game for mobile. Some Mathematics question will appear in order and 4 options will be provided for each question. On the top, there will be an object. The object will move 1 step forward if the answer for the question is correct. But if the answer is wrong, there will be a popup message "try again". when the object move to the ending point. You win the game. And the timer will stop timing and record the time in the memory. And the time will be display in a high score tab.

View 0 Replies

ActionScript 2.0 :: Create A Flash Game Whereby There Will Be 6 Pick Up Line Voices?

Jan 17, 2011

I need to create a flash game whereby there will be 6 pick up line voices and you need to match the voices to the faces of who you think the voice belongs to. Do you know any tutorials of this nature.It also needs to calculate score.

View 1 Replies

Flash5 : Wix Flash Transition Copy?

Aug 10, 2010

[URL] is where the page is located but i want to copy the transitions between pages into my own flash document and i have literally no idea where to start. I have flash cs5.

View 1 Replies

Flash5 Flash Ignoring Stop(); Function?

Apr 19, 2011

In main timeline I have a layer that contains my levels. So far 3 test levels. In the actions layer in the main timeline I have this code

Code:
if (circle_mc.hitTestObject(platforms.goal1))
{
nextLevel.alpha = 1.00
nextLevel.addEventListener (MouseEvent.CLICK, nextLevel1);

[Code]...

View 2 Replies







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