ActionScript 2.0 :: CS3 Dialogue Trees And Allow Them To Progress?

Feb 9, 2010

As I said once before I'm making a dialogue based flash game.I'm relatively new to flash, so I've been having to scavenge for bits of code for what I want to do...-------Right now my situation is this -When a player "talks" with a character by pressing the "talk" button I want them to be able to pick up at the conversation point they were at last time. Not a save file, but more of a progression,so if they were to explore other parts of the world and come back to the same character, they'd have to click on the same "talk" button, but //still// be advanced in their dialogue tree.

Is there a way to do with with action script code?Something that will tell flash, "Oh, this is where we left off, I'll go to the next frame of dialogue" when players clic on the "talk" button?My only idea to do something like this is quite a hassle -make a variable named "times talked to" and have the button depended on this variable, and make it gain a point every time it is pressed,but I'm under the impression that this effect can be achieved without something like this.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: How To Make Fractal Trees

Apr 17, 2006

Im really trying to learn fractal tree programming in AS, looking to integrate it into a game.

View 4 Replies

Create A Progress Bar (248px Wide) With A Slider That Moves According To The Movie Progress

Jun 4, 2010

I have an SWF movie (1375 frames) and created a progress bar (248px wide) with a slider that moves according to the movie progress. I'm doing that next way:Calculating the distance for the slider to be moved each frame (248 / 1375) On each ENTER_FRAME moving the slider for the calculated distance The problem is - the movie ends far before the slider reaches the end of the progress bar.

I'm thinking that the distance (Step 1) is is somehow ends floored by Flash and the actual distance it moves the slider is smaller than required. That's why the movie ends, but the timeline control just passed the 2/3 of its way. My question is - is there any solution for the problem? Or any other way to go, if it's a wrong one?

View 2 Replies

Professional :: Background Scrolling - Attach The Trees To The Background?

Nov 19, 2010

I have converted a large background image (much larger than the stage) into a Movie Clip.  I did this so I can make it scroll as the player traverses to the edge of the scene.This appears to make the player free to roam the entire background image.I have a tree symbol with a class attached to it that blocks player movement.Here is my problem:

When I drag and drop instances of the tree symbol onto the background, the trees are stationary and do not scroll with the background.I do not want to have to implement code to make the trees scroll when the background does.I was wondering if there was a way to simply attach the trees to the background so that if the background moves, the trees move with it and appear to be part of the background as if they were drawn into it.It is convenient for me to be able to drag and drop as many trees as i need to block certain routes on the background from the player.I tried writing code to make the trees move but it was only working for the very last tree that I added to the scene.

View 8 Replies

Flex :: User GetRepeaterItem To Set The Progress Of A Progress Bar?

Mar 2, 2011

I have a progress bar inside a repeater and therefore I will need to use getRepeaterItem to set it's progress as suggested in this question.

How can I do that such that the value of progress may be taken from repMonitor.currentItem.threatLevel?

<mx:Accordion id="monAccordian" includeIn="Monitoring" x="10" y="10" width="554" height="242" change="monAccordianChange()" >
<mx:Repeater id="repMonitor" dataProvider="{monitoringArray}">

[Code]....

View 1 Replies

Empty Char Embedding Dialogue Box?

Oct 4, 2010

I'm using flash cs4 on a mac and I need to embed some characters to support greek, and probably a lot of other languages. The problem is, my Character embedding dialogue box is empty! There's nothing in it at all... I'm using Tekton Pro as the font for that dynamic text box, I tried using something more basic, Arial and Helvitica didnt work, still nothing to embed. I know the phrase that will be in it, at least the first one, when I put it in the "Include these characters" box and reran, all the dt box would show is an apostrophe. I put the phrase into the dt filed itself and "autofilled" it did the same thing. I also tried doing the same with the % character version ie %B6, it picked up that they were characters but still wasnt displaying right. I'm diverging.

View 3 Replies

ActionScript 2.0 :: RPG-style Dialogue In Flash 8?

Feb 9, 2011

I'm building an RPG game and need help with the dialogue. I have no idea how to go about it. What I want to set up is something that after approaching a character and pressing spacebar (or any key), text displays with an image to the left of the character speaking. I've tried looking up tutorials but they all seem to be for CS3 (I am using Flash 8).

I currently have no code whatsoever to share, since...I don't know where to start =/ . Source codes would be appreciated, but most of all, I'd love a link to a tutorial or past thread that explains in detail (and layman terms...) how to do something like this, since I want to learn as I go.

View 2 Replies

Flash :: Professional - Change Pop-up Dialogue Box?

Mar 22, 2011

I am creating interactives that are interfaced via touchscreens. When someone holds their finger on the screen for more than a few seconds, a settings pop-up appears where the zoom, etc. can be changed in flash. Is there a way to disable this? I use flash cs3 - as2.

View 2 Replies

AS3 :: Php - Open A File Dialogue Box From Zend AMF?

Dec 3, 2010

I want to send a request to my Zend AMF to Open a Dialogue Box for a File Download.The process:Send a request to the Zend Server from my flash App, process the MYSQL results with PHP, then send the result to the browser as a file download (.csv) AND a result true or false to the appI have the code working just fine outside of the Zend Environment, but of course, when i go to echo/print the file - it sends back to flash with nothing happening.Is there any way around this?

$file = "";
$outtype = "Content-type: application/octet-stream";
header($outtype);

[code]......

View 2 Replies

Empty Char Embeddign Dialogue Box?

May 26, 2009

I'm using flash cs4 on a mac and I need to embed some characters to support greek, and probably a lot of other languages. The problem is, my Character embedding dialogue box is empty! There's nothing in it at all... which is... problematic.

I'm using Tekton Pro as the font for that dynamic text box, I tried using something more basic, Arial and Helvitica didnt work, still nothing to embed. I know the phrase that will be in it, at least the first one, when I put it in the "Include these characters" box and reran, all the dt box would show is an apostrophe. I put the phrase into the dt filed itself and "autofilled" it did the same thing. I also tried doing the same with the % character version ie %B6, it picked up that they were characters but still wasnt displaying right. I'm diverging. get that Char embed box to have chars in it... I don't know why its empty.

View 4 Replies

ActionScript 3.0 :: Close The RPG Text Box After The Dialogue Is Completed?

May 20, 2010

I have been using this tutorial to get RPG text boxes in my game. So far, so good. The RPGtext.as I'm using comes from that tutorial, and hasn't been altered, while I'm calling the var arrays containing the character speeches from yet another document class. Something like this:

[Code]....

The dialogue begins and it's all good. Now, here's my dilemma: Is there a way to "shut down" the rpgText movieclip when the Dialogues.d1 has no more text to provide? Each time I press the rpgText movieclip, it refreshes with new text, but when it reaches the final text, I want to be able to press it and make it go away (remove movieclip from scene, something like that).

I tried the "if (Dialogues.d1.length == 0)", but it doesn't work. Is there a way to detect if the Dialogues.d1 has reached its final sentence? Will it be necessary to alter the rpgText.as?

View 12 Replies

Actionscript :: Save Text File Without Dialogue Box In It?

Jan 13, 2010

I want to save the text file without dialogue box and store the given particular path in flash actionscript 3.0 or 2.0.

View 1 Replies

ActionScript 3.0 :: Call Javascript Alert Dialogue Window?

Aug 2, 2010

I think I remember hearing that you can trigger a java alert message from within actionscript out to the html page but whats the code to do such a thing?

View 2 Replies

ActionScript 2.0 :: Creating Flash Game With Story Dialogue

Mar 9, 2011

I'm using Macromedia Flash Professional 8 at the moment, and I'm fairly inexperienced with actionscript and most Flash processes. What I'm looking to do is create a game of sorts where characters appear on either side of the screen and a dialogue box appears at the bottom with text scrolling across every time the player clicks "Next" or whatever, and the characters' mouths move and their eyes blink as the text scrolls. We're using voice actors so we'd put an audio clip at the start of each piece of dialogue.

View 1 Replies

Flash :: HTTP Authentication Using Htaccess/htpasswd Dialogue Box Comes Up Twice?

Dec 2, 2009

I have a site that has the main path under password protection. I also have a subfolder that have a separate (htaccess/htpasswd) password protection. For some reason, when I access the subfolder, I'm asked to put in my id/password twice. All of the files that are referenced are under the subfolder.

What should I be doing to troubleshoot this? I've tried this on different browsers and it's the same behavior. There is one main html page with a .swf (the only thing on the page)...it loads other assets but they are within the same subfolder.

View 1 Replies

ActionScript 3.0 :: Download File Without Prompt Of Save As Dialogue?

Aug 29, 2009

I need a way to be able to download a file without the prompt of save as using filereference i need to download this file, manipulate the file and then later on, upload it back to the server!

View 4 Replies

ActionScript 3.0 :: Splitting Dialogue Text Into Smaller Chunks/Lines?

Apr 27, 2010

I'm working on an RPG engine where all the dialogue is stored in an XML file. Ideally like to be able to pass the engine a large paragraph of dialogue text and display it bit by bit inside a fixed-width text field without splitting any words.So for example, if I were to pass the following chunk of text:"Good countrymen, let me depart alone, And, for my sake, stay here with Antony. Do grace to Caesar's corpse, and grace his speech. Tending to Caesar's glories; which Mark Antony"The engine would work like this:"Good countrymen, let me depart alone, " - PRESS SPACEBAR"And, for my sake, stay here with Antony. " - PRESS SPACEBAR"Do grace to Caesar's corpse, and grace his speech. " - PRESS SPACEBAR"Tending to Caesar's glories; which Mark Antony" - PRESS SPACEBARDoes anyone have any ideas how I could achieve this?

View 1 Replies

ActionScript 2.0 :: Create An Array For Every Time Two Characters Exchange Three Lines Of Dialogue?

Jul 9, 2009

i'm creating a very linear game which will be dialogue-heavy. In fact, there will be little action involved at all. Think a game storybook. I'm using ActionScript 2 because AS3 is just too complicate for the type of newbie that I am. But all I'm trying to do is set up dialogue between two characters in my game with an image of the speaking character to the left of the textbox. Something very much like this:I considered creating arrays for the dialogue but my problem is that if I create an array for every time two characters exchange three lines of dialogue, I would end up with over 300 arrays. Not my cup of tea.

So, instead, I focused on this. I created a function called speak. Speak pulls two parameters: charNum and charText. CharNum is a number which specifies which frame of the charPic instance should be displayed, showing which character is currently speaking. CharText is simply the dialogue the character will speak, which will be displayed in the dynamic textbox with variable name 'dialogue'.The following code is an example of what I have at home. I'm at work trying to get help, so I don't have the actual coding. Therefore, small errors may be present. I'm looking more at the overall functions guiding my code.

[Code]...

You see, AS2 sees these as I believe what is called synchronous functions, meaning they run at the same time. Therefore, the second speak function overwrites the first one before the user presses the space bar to go to the next one. See the issue?I've tried to seek help on this issue (and other before), and I keep getting told about arrays and setInterval. But my problem is that I've tried it all. I don't see a good array tutorial about this type of thing, and setInterval doesn't function like I'd want as well. Instead, it seems that from what I've read and tried, setInterval is for setting a delay up for a certain amount of time. I don't want that. I want a delay to occur until a button (namely the space bar) is pressed.

Like I said, this seems like a fairly common thing to do (stringing together dialogue in a flash movie/game), but I have seen no tutorial nor other help through all my Google and forum searching. A little push in the right direction would be appreciated. Like I said, I've figured out everything else my game needs from preloaders to game inventory to animation effects.

View 1 Replies

ActionScript 2.0 :: Make A Ticker Counter That Starts From 0 - 0 Rand And Counts Up For Portion Of Dialogue?

Sep 27, 2010

I need to make a ticker counter that starts from 0 - 0 rand and counts up for this portion of dialogue.

a commission of between R6,000 and R12,000 per month,
again depending on the amount of each person's
purchases.
200 customers gives you R15,000 to R30,000.
And 600 customers gives you a return of R50,000 to
R100,000. Per month.

View 1 Replies

Get The Dialogue Box "No Dialog Node Found In XML To UI Source File."?

May 28, 2009

I seem to be unable to attribute behaviors to anything in Flash 7. When I try to a add a behavior to a button I get the dialogue box "No dialog Node found in XML to UI source file."

View 1 Replies

ActionScript 1/2 :: Forcing A "save As" Dialogue?

May 1, 2009

I have some pdf files which I need to link to a few buttons inside a flash animation, but I don't want to do it with "getURL" because then they start opening in the browser. I want a "save as..." dialogue to pop up. I've googled around for forced "save as dialogue" but all I can find are php and asp solutions.
 
Is this doable in flash?
 
I'm using Flash 8 professional, with Action script 2.

View 5 Replies

Adding A Progress Bar?

Aug 14, 2009

I have created a progress bar using AS2 before but I only vaggly remember how I know that it involes using some code that deals with percentages but other then that I don't remember how to do it and I really don't remember how to apply it to my my .swf. and have it appear in my HTML page.My flash file was created using AS2 in Flash CS3

View 1 Replies

ActionScript 3.0 :: Show Progress Through AC3?

May 13, 2009

I've been having a hard time for some days now trying to make a progressbar in AC3. I searched the web and tried several different approaches and attempts but nothing works. I hope I can get some input from here now...
 
The main portion of the applicataion is working. It's only when I try to use AC3 to control the jumps in the timeline the problem occours.
 
This is my AC3-code:

import flash.events.*;import flash.display.Loader;stop();addEventListener(Event.ENTER_FRAME, myFunction);var p_loader:URLLoader=new URLLoader();//addChild(p_loader);

[Code].....
 
As I run the code all the trace-statements is printed. But the bytes is 0 all the time. I guess this has something to do with the main problem. I tried to simulate the download-process, but in this way not even the "kirupatxt.text = "TESTING";" is printed in my dynamic textfield.

View 4 Replies

Progress Animation For Loading SWF

Dec 21, 2009

I've created a progress bar animation to load an external SWF file as described in this document: [URL] The problem is, the SWF file i want to load is a magazine exported from Indesign, so I want it to display one page (frame) at a time (you can go to the next page using the navigation buttons provided). When I use the method mentioned above the clip loads, but then it plays... so how can i make it stop at the first frame?

View 4 Replies

ActionScript 3.0 :: Use The PROGRESS Event?

Aug 19, 2011

Can someone explain to me how to use the PROGRESS event, i looked at the docs but it never helped me?
 
I want to use it to display the prgress of downloading data from a API, its a URL event.But i was told i can do this via a PROGREE Event

View 19 Replies

ActionScript 1/2 :: Draggable Progress Bar For Swf?

Oct 12, 2011

I need to add a progress bar/playback controls for a presentation built in AS 2.0 which has such length voice over in it we've decided we need to give the user the ability to see where they are in the timeline and scrub through sections of the presentation. I'm familiar with stop and pause button code in situations like this, but it's the first time I've needed this kind of functionality. Presently, the first part of my project is set up with several scenes and is completely linear. The second section is interactive with swfs loaded into empty movieclips.
 
I've found a number of references to progress bars online, but they're all for loading content, not for navigating once content is downloaded.

View 1 Replies

Flex Progress Bar Setup

Jul 15, 2010

I am trying to make a progress bar to show the my application loading status. I google a lot but it only shows how to use progress bar for elements (ex: images, datagrid). I need to know the progress bar setup for the entire application.

View 1 Replies

Flash :: Mp3 Player Progress Bar

Jan 24, 2011

I have an mp3 progress bar with my mp3 player.When the song is loading/playing the progress bar jumps around until the song has completely downloaded/loaded.Is this the normal functionality.[code]

View 1 Replies

ActionScript 3.0 :: Progress Bar Not Functioning?

Sep 17, 2009

I tried to create a simple progress bar by adding the ProgressBar component to my library, renaming it to "progressBar" and giving it an instance name of "progressBar" as well as adding the following code to my main class:

PHP Code:

package {
import flash.display.*;
import flash.events.*;
import flash.display.Loader;

[Code]....

View 0 Replies

Actionscript 2.0 :: Progress Bar Of A Flv Component

Jan 27, 2009

I'm having issues with a progress bar of a flv component. It goes beyond the limits and cannot control the movie or see the load progress. My problem can be seen here: [URL] To see the problem: Click ARQUITETURA -> Click REPRESENTAƇƃO -> Click VIDEOS DIGITAIS

[Code]...

View 6 Replies







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