ActionScript 3.0 :: Path Branching Game / Choices / How To Make Them Work
Sep 5, 2010
I want to make a simple frame by frame path branching game. The problem is that I know that writing in and filling in EVERY FRAME going all along for EVERY CHOICE PATH would be an insanely tedious amount of work. My basic project is reminiscent of japanese visual novels, and I've been looking for turtorials to help me with this style of role playing games, but all of the tutorials concentrated on the adventure RPGs. : Being a novice at Actionscript, past working buttons to make it go to the next frame and stopping it, I was wondering if its possible to make a choice you make earlier in the game affect it later. Such as, you keep following the game normally afterwards, but depending on your choice you'll go to a different scene later. basically, this way I'd like to eliminate the need to make two duplicate paths with only minor variances to show the changes for some choices. Another thing that I would like to know if its possible to do, though this is less important, as I have yet to look for these things and I'm sure I can find them but a save/load system, easy to find I'm sure. And an unlocking system. Something so that once they hit a certain CG I can unlock it in a 'memories' menu on a main screen.
View 9 Replies
Similar Posts:
Jul 28, 2011
I need a button to be coded so that onRelease it goes to a certain frame and plays until it hits a frame label at which time it jumps to another frame on the timeline. This only happens if you click the button. If you play the movie from the beginning it ignores the label.
View 3 Replies
Dec 26, 2011
Any simple path finding method for my isometric game im making. The game consists of a character in a 7x7 isometric grid and you can buy items from the shop and you would be able to pick up and set down the items but I know how to do that what I need is to find a way lets say theres an item using a tile and I click further from that tile the character would need to walk around it ill do all the _rooting for where the character faces and stuff I just need a simple way to let my character know how to walk around stuff heres where my games at : (not done, my character can walk but with a cheap algorithm I made, he cant even walk everywhere ) [URL]
View 4 Replies
Aug 16, 2011
I am creating a flash game and I've hit a problem I have four objects, lets call them img1 through img4 I need them to move around a maze, witch is made up of blocks (maze.wall.block1 to block53) I have seen tutorials on creating a path however these all involve the object to be added to the stage, where as I am doing it in a as3 class. So my question is either: How can I create a path manualy on the stage, then create an object to follow the path in the as3 class, OR how can I add very simple ai to the img object to move around but change direction when the hitTestObject triggers on the maze.wall.blocks?
View 1 Replies
Jun 13, 2009
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.
View 9 Replies
Jul 1, 2010
It will basically walk you through the windows to perform a typical setup, with some branching off for special cases. Essentially a main series of screen shots with text that you can scroll through using arrows, with links off to other screen shots or sequences as need. My boss wants it to be "hip and flashy", so wants me to look into Flash. But is that the best tool to use for this ? In all the Flash tutorials I have been watching I haven't seen anything that looks like that kind of application.
View 1 Replies
Apr 1, 2011
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
View 1 Replies
Mar 28, 2011
A retired social worker, beginner learning AS 3 scripting, I would like to try to use AS 3 to create a questionnaire for an eLearning lesson and am not sure how to script it. Each statement (questionnaire has 28 of these) to which the user responds has 11 choices: 'how much does this apply to you'; 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100%. The user selects one of these (radio button?). Then, after completing all 28 items, the responses' values are totaled for the 28 items, divided by 28 to get the overall "score." Would also need an if/else: if total score >= 30, show one message, else if =< 29, show a different message. I've looked at some multiple choice quiz type example, but so far have been lost trying to apply these to 11 choices.
View 6 Replies
Jun 9, 2006
i need to be able to make a random selection from three choices. Basically i'll have three seperate .swfs (probably named "1.swf, 2.swf, 3.swf") and also three separate mp3 files (probably named same way).The container .swf will have a function which will probably make a 'random' selection from the three .swfs of which one to load and also make a 'random' selection from one of three mp3 files to load
View 5 Replies
May 11, 2009
I want 3 comboBoxes. The choices in the first and second will determine what will be displayed in the 3rd box. E.g.
1st box - Choose a genre of music (Rock; Pop; Dance etc.)
2nd box - Choose your county
3rd box will display a list of gigs of your chosen genre in the county selected.
Upon choosing a listing in the 3rd box a dynamic text box will display details (address; contact number; price; web address etc).
View 1 Replies
Dec 15, 2009
I am ramping up a Flash Media Interactive Server ver 3.5. My question is - I don't have Flash CS4, -does the flvPlayback component in it allow netstream connection control to facilitate FMIS connections? One that allows fullscreen for VOD streaming would be what I need.
View 2 Replies
Mar 28, 2012
I am having trouble getting a function to work within flash. I basically am creating a video where the intro video plays through then the user is prompted with 3 choices to select which video will play next. I am using keyboard input to make the selection. I have the keyboard input capturing working, pretty basic, but I am having trouble getting it to switch to say scene 2 (where I have another video).
Code:
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.KeyboardEvent;
function reportKeyDown(event:KeyboardEvent):void {
[Code] .....
And I get a compiler error stating "Scene 1, Layer 'content', Frame 1, Line 11 1120: Access of undefined property event.
I've created a new layer in the scene 1 and put that code in and everything compiles fine. I created scene 2 and imported a video into it from the library but the video plays and does not respond to any key input and the output is not showing the trace any longer. Enter does work to pause and play the video though.
import flash.events.Event;
import flash.events.KeyboardEvent;
function reportKeyDown(event:KeyboardEvent):void {
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
if (event.keyCode == Keyboard.ENTER){
gotoAndPlay("Scene 2");
}}
View 0 Replies
Feb 1, 2011
I have a flv that is loading from a subdirectory off my flash swf.Everything works fine when I load the video from [url].....However, when i start the video from mysite.com, the video is not located.What can i do to remedy this? I'm not using an absolute url in the component parameter inspector.For example
myVidDirectory/myvideo.flv
should I use a different path?
View 3 Replies
Sep 25, 2009
I am trying to link a button via AS but I need to use a function that is on a different time line for it to work. I have no idea how I am going to do.
[Code]...
I am trying to use the "var flvControl" but that function is located on a different timeline.
View 7 Replies
Jun 4, 2005
I've got an empty MC called "picture". This MC has the following path:
Code:
_root.container.picture
So, it's an external SWF (photography.swf) loaded in thru the container MC.When I make button at the first frame of photography.swf everything works fine. BUT, when I place the same button inside a MC (called "allphotos") I cannot get this to work.I use he following code for the button:
Code:
tb1.onRelease = function() {
_root.container.picture.loadMovie(image[6],6);
gotoAndStop(1);
}
It seems to "semi-work", because it loads blank. So at least the current photos disapears.I've used _parent, _level0 etc. Nothing.
View 3 Replies
Jun 10, 2008
I'm programming a dinamic flash/xml website. up until now I've kept the info for the menus and the one for the gallery (the site has a gallery that displays both text and images) in separate xml files. but I'm trying to make all of it work out of a single xml file. I've managed to make the menus and the gallery all go get the info correctly to the xml (text and images), but then I came up with a problem that jeopardizes the whole show: a path inside the xml's onLoad function refuses to work! the code that bears the function has to be placed into the same clip as the clips that contain the text fields to wich info will be passed or it won't do a thing.
supose this is my actionscript code:
Code:
var contentSubMenu = new XML();
contentSubMenu.ignoreWhite = true;
contentSubMenu.load("example.xml");
[code]....
no information is passed to that clip. If the path targets that clip one should expect it to, right? even if all this code is placed on _root, right? well, it doesn't happen...I tried tracing for info that comes from the xml, but nothing is displayed in the output window.
I've attached a zip file that contains a fla file, an xml file, a txt file with the full chunk of actionscript code and the fonts you'll be needing should you decide to take a look (they're only two).
The fla file has been built in the following manner:
_on the right side, the clips that hold the text fields to wich the contentSubMenu.onLoad function will pass info to are directly placed upon _root (so, following the code example from above, it would be like having var buttonList = _root;)
_on the left side, the clips that hold the text fields are down into buttonListSlide_mc and the contentSubMenu.onLoad function is there as well, only commented so it doesn't display anything.
View 1 Replies
Mar 29, 2009
So, I'm using this Path Class to make a path and then draw it. I'm having a problem where there are some positions that I draw the path, the entire line does not draw.You can see an example of this here as the dot moves. The line flashes at a few coordinates. Just a small concept example I made. The path is there, it's just not being drawn.
The code :
Code:
import com.senocular.drawing.Path;
// create a path instance that draws in _root
var myPath:Path = new Path();
[code].....
View 2 Replies
Dec 19, 2009
i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 Replies
Jan 24, 2011
I have a strange problem: When I type the absolute URL to my SWF file it works fine; however, only the background image appears when the SWF is embedded in the home page.
View 3 Replies
Jul 18, 2010
So I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below
Code:
import flash.display.Sprite;
import flash.events.MouseEvent;[code].....
View 14 Replies
Apr 21, 2010
I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.
I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410
View 4 Replies
Oct 23, 2009
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]...
View 5 Replies
Aug 24, 2011
I need to use flash as3 to create a game, and I have tried to use 3 layer to load my swf. My game is in the third layer, and the first and second layers are just a preloader script.My problem is when the game is loaded onto the stage of first layer my KeyboardEvent function is not work until I press the stage.I have try to use Event.ADDED_TO_STAGE to solve it, but I also get a same error.this is my code for preloader
var request:URLRequest = new URLRequest("game.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);[code]....................
View 2 Replies
Jun 14, 2009
I've looked and looked but i cannot find any way of using as3 scipt to make a movieclip follow a path.
View 3 Replies
Apr 15, 2011
I have 4 cubes with Papervision and i like the camera to fly thru the 4 cubes, how can i set this up?/
View 0 Replies
Apr 18, 2009
i am having a problem with my flash animation game timer and nothing seems to work
i want it so that when the time reaches 60 seconds and the score is over 200 it will go to the frame gameWon if its below it will go to gameLost. i also am struggling to make the timer show up on the animation game.
[Code]....
View 1 Replies
Dec 10, 2009
I am in the midst of coding a multiplayer card game. Right now, to make things simple, I limit myself to code for 3 players for one room. The clients call functions in the server and vice versa. Functions such as player's turn, shuffling cards, etc. So what happens if there's more than 1 room? Won't the data from the different rooms get mixed up with one another in the server side, since everything will be happening in just 1 server and on the same function? I am abit confuse on this part. Can someone enlighten me on how different rooms work in a multiplayer game? How do I make sure the data don't get messed up?
View 2 Replies
Nov 15, 2010
I'm making a platform game, and the game runs perfectly fine as a swf, as long as Flash CS5 is installed. It won't even work if CS4 is installed. When the swf is played standalone, or embedded in a browser (tested on multiple machines). The collision detection does not work well, and the play simply falls endlessly. Has anyone experienced their code messing up somehow when run in similar situations that could provide some insight?
View 1 Replies
Nov 11, 2011
I'm working on a puzzle game in Flash. It's a two-player, head-to-head game with some realtime elements. It is not Tetris-like, but the level of player interaction and the rate of movement is similar to, though slightly more complex than, Tetris Battle on Facebook.
Naturally, I would like to match players up over the Internet. I would also like to prevent cheating as much as possible. Because of this, I am researching an authoritative server solution, much like Colin Moock describes in this answer to a similar question. That is, the server runs the authoritative game logic while the client runs a parallel simulation, sending player movements to the server for validation.
My question is this: Doesn't this essentially mean implementing the game logic on both the client and server side? Worse still, the server probably isn't going to run its simulation in Flash/ActionScript, which means you can't share code and you'll be implementing the same logic twice in two different languages.
View 1 Replies
Feb 1, 2007
I have built this AS2 game that uses quite a few classes and library symbols.It works fine the first time you play the swf. But if you try to do the whole ctrl + ENTER in the Flash IDE, it doesn't seem to load any of the assets that are dynamically attached to the stage.This also happens if you have another swf use loadMovie to load it.I have all the dynamically attached symbols assigned with the linkage and set to export on the firstFrame. There is an include .as file on the first frame of the fla.
View 3 Replies