ActionScript 1/2 :: SlotMachine / Match Game Scoring

Sep 24, 2010

I am working on a game that is set up like a slot machine. The first box contains a name, the second box cotains a piece of information about the person and the third box contains another piece of info. Each box has a movie clip in it that contains 10 frames, each frame has text in it (a name or piece of information). There are up and down arrows above the second and third box as the user can control what piece of info is in that box using the arrows (if the user clicks the up arrow they go up 1 fram to different info....if down down a frame to new info.) The first box is not user controled, it has a button that randomly generates the name the player is given with a spin animation.
 
The goal of the game is to match all three boxes the random name with the 2 user controlled pieces of info. If this happens I want the player to receive 20 points. However, if the player only matches one of the pieces of info to the random name then they should only get 10 points. If they do not match ny pieces then no points are awarded.

I figured the best way to do this would be to give the corresponding correct answers and names matching variable names and set it so if you have 2 matching variables you get 10 points and if you have 3 matching variables you get 20 points (no points awarded for 1 variable because 1 variable alone would be the name). My problem is that I dont know how to assign a frame a variable number and I also dont know if its even possible to do something like this. Am I on the right track or is there a much better way to set up scoring?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Game Scoring Is Inconsistent

Jan 8, 2012

I'm building a simple game where players scores 1 point each time his/her paddle makes contact with a ball falling vertically from a random X position. All works well - except for the scoring. Hits will score anywhere from 1 to 4 points; they should only be scoring 1.

View 2 Replies

Incorporate Scoring Code Into Current Game?

Apr 28, 2010

I'm trying to incorporate a scoring code into the current game.

View 3 Replies

ActionScript 1/2 :: Scoring And Data Collection For Simple Flash Game

Nov 29, 2011

My company has developed a very simple "Whack-a-Mole" type of game for a social media campaign. See here: [URL]. Our client is now requesting that we add a scoring system so that we can offer a prize to the 3 top scores. What I need is to be able to link the number of "whacks" to a score and enable the user to input their email address at the end of the game connected to the score they achieve.

View 5 Replies

ActionScript 3.0 :: Flash Game Scoreboard - Setting Up A Scoring System

Apr 5, 2012

I am making my very first AS3 game, and though it's quite simple I'm having trouble setting up a scoring system. The concept of the game is simple. Objects appear on the screen, clicking the objects adds points. For this project I am working with 3 AS files, a Document class and two movieclip class files. I would also like to track how many objects have been added to the stage in addition to the score which should track how many objects have been clicked. Here is my Doc Class

[Code]...

View 14 Replies

ActionScript 3.0 :: Memory Game - Match Two Different Colours?

Nov 21, 2011

This person created this game:http:[url]....i was wondering if i wanted to match two different colours, how could i do this? for example, instead of matching two reds, if i wanted to match a red and green, how is this done?

View 2 Replies

ActionScript 3.0 :: Make Slotmachine "Hold"?

May 26, 2010

i'm trying to create a casino slotmachine(ish) game. What I want it to do is if 2 of the same icons apear on the Winning line, those two reels will actually "hold" and keep the animation from playing and the mathround from being executed for 1 turn. Just like any given slotmachine you'll find in a casino.

Actionscript Code:
[as]var NOF:int = 12;button.addEventListener(MouseEvent.CLICK,playit);function [code]....

View 1 Replies

ActionScript 3.0 :: Swf Within A Swf Scoring?

Apr 12, 2012

I've created a flash file (my project) that is loaded into another swf (our player) file on our site. When I test the project file on my computer the scoring displays correct at the end of the lab. When it is loaded into our  swf player on the site the score doesn't display. I'm at a lose for why this is happening.

[Code]...

View 8 Replies

ActionScript 2.0 :: Scoring In Flash Mx?

Oct 21, 2004

I have a bunch of textboxes that they have to click a button to check to see if their entry is correct. I have this code within the buttons

on(release) {
if(_root.q5answer == "2") {
_root.correctmovie.gotoAndPlay(2);
_root.total = _root.total + 5;

[code]....

it adds 5 every time to the dynamic text box...I have this within the correctmovie (which is checked after each question):

if (_root.total(Number(100))) {
tellTarget("allcorrect") {
gotoAndStop(2);
}
}

it adds up correctly, but when it gets to 100, it doesn't play the allcorrect movie.

View 1 Replies

ActionScript 3.0 :: Quiz Is Not Scoring Correctly

Jul 24, 2010

I'm trying to make a quiz with multiple question types (multiple choice, true/false, fill in the blank, drag/drop). The problem I am having is that the questions are not scoring correctly. Here's what happens

[Code]...

View 5 Replies

ActionScript 1/2 :: How To Create A Scoring System

Jul 7, 2011

i am making a shooting game for ict and i dont know how to make a scoring system or where to put the code this is my code:

stop();
var numEnemy = 3;
var fire = false;

[code].....

View 7 Replies

ActionScript 3.0 :: Creating Scoring System Through Frames

Apr 13, 2011

I am trying to create a quiz in Flash CS5. I have coded all the quiz so that it is done in different frames, such as the start screen in frame 1, then the five questions in frames, 2, 3, 4, 5, and 6 (one for each question). How would I create a scoring system so that if the user got a question right it would add 1 to the score but continue scoring through to the next frame? It needs to have a pass rate of 4 out of 5 correct answers.

View 1 Replies

ActionScript 2.0 :: Scoring Drag And Drop Interactions?

Apr 22, 2005

I have a bunch of drag and drop interactions in my flash file that gets graded, the problem is, they can move it away and back again to make the points keep adding up. What kind of code can I put inside my draggable movie/button to say when it is placed correctly, that is it, it can't be moved again?

View 2 Replies

ActionScript 2.0 :: Learning Interactions Scoring Control?

Oct 8, 2006

I am using a learning interactions quiz at the end of an animated movie. Because it is entertaining I would rather not launch as a standalone quiz. Everything works perfectly when the quiz is on its own timeline that starts at frame1, but whether I use loadMovie or use the quiz as a movieclip, or start the quiz on frame 1460 on the scene1 timeline the calculate score control doesn't work. It is called mc, frameNav and it comes with the Flash quiz templates. The AS associated with that mc is below.

[Code]...

View 1 Replies

ActionScript 2.0 :: Scoring Drag And Drop Interactions

Apr 22, 2005

I have a bunch of drag and drop interactions in my flash file that gets graded, the problem is, they can move it away and back again to make the points keep adding up. What kind of code can I put inside my draggable movie/button to say when it is placed correctly, that is it, it can't be moved again?

View 2 Replies

Professional :: Creating Online Quiz With Scoring Results

Aug 8, 2010

I had an existing client ask me about the possibility of building an online quiz. I am fairly adept at working "inside" Flash, but always run into problems when trying to export data "from" Flash anywhere else. I am also trying to figure out if Flash is the best application to build this quiz (I see other possible apps like Captivate, but don't know if they are necessary for what I am trying to do).

What I need to do:
I need to create a Login screen to attach the final text score to an individual.
Create (50) separate screens for 50 questions with multiple answers for each (simple enough) with submit buttons once the answer(s) are chosen.

Each time an answer is submitted it has a certain "weight" toward the total score (which I am guessing that I could track into a variable inside Flash?) When the test is complete all I need to do is send that Person's Name/Total Score to a database. Is this something best accomplished using Flash?

View 3 Replies

ActionScript 3.0 :: Screen Fallowing Character And Scoring System

Aug 28, 2010

I'm new to flash and I cant find any tutorials on how to make the screen fallow a character when you come up to the left or right edge of the stage so the map will continue on a platform game and adding scoring system in action script 3

View 17 Replies

Professional :: RemoveChild Not Working - Movieclip To Appear With +5 To Show The Point Scoring

Mar 2, 2011

I have a simple catching game with objects falling from the top of the screen and when they are caught at the bottom I want a movieclip to appear with +5 to show the point scoring. I have set up a timer to show the mc then to delete it when it finishes. It all works apart from the mc will not disappear once the timer is finished. I have thrown a trace statement in to check that it is firing and that shows up fine. What the hell am I doing wrong? Here is the section of code:

[Code]...

View 2 Replies

ActionScript 3.0 :: RemoveChild Glitch - Scoring Process With The StartTest Function

Feb 1, 2012

I start running a scoring process with the startTest function which adds 2 text fields - the score (as a number) (myText2) and the label "Score" (myText5) next to it using this code:

[Code]....

View 3 Replies

Actionscript :: How To Get Value From Match

Dec 6, 2009

How to get value from match in ActionScript?

View 1 Replies

ActionScript 3.0 :: Search Through XML To Match ID?

Jul 9, 2009

I'm pulling news information from an XML file. The root node is "article", the child nodes are (for example) "date", "title", "caption", "copy", "link", etc.

Each time an article is added, a couple button (mc's) will be added to the stage. One button when clicked displays a movie clip and attempts to update the dynamic textfields within to display just the date and caption. The other button when clicked displays a different movie clip and attempts to update the dynamic textfields within to display all of the information noted above.

Being that this is dynamic and coming from an XML file, I want to avoid having to write if ... else statements for every new article (and each button).

Is it possible to search an XML document and scan for a name/ID match to create certain actions?

In other words, If I were to give an MC a name of "thisButton123" and also give an XML article node an ID attribute of "thisButton123", I could say something like if the currentTarget.name == any of these XML node attributes than pull that nodes content. Eliminating the need to compare/contrast names and ID's specifically.

View 4 Replies

Swf Doesn't Match My Fla File

Jul 26, 2009

I have a problem in that I've made a web banner - text with motion and shape tweens. Trouble is when I test movie, it not only plays in a different font to the one I've used in the design (metaPlus normal) it misses out text!?I'm not getting an exact replication of what the fla file is.[code]

View 5 Replies

ActionScript 3.0 :: Match Two Arguments In One?

Jun 14, 2011

I have this piece of script, where I want to do a hittest when both the x AND y are not the same (and some other variables) now, that wouldnt be so hard, you think: if (MovieclipA.x!=MovieclipB.x && MovieClipA.y!=MovieclipB.y) but! if i now have a MovieclipC, which is on the same y coordinate as A, but not on the same x coordinate, the hittest wont execute..., as the y coordinates match...
 
it probably is really simple, but how can i solve this problem?

View 8 Replies

ActionScript 3.0 :: Use Reg Exp To Match Every Line?

Oct 11, 2011

I'm counting lines of codes in my flash builder project, and I try to use Search function Ctrl+H, and search how many lines in *.as file, and I failed to match with /[.]+/, how can this be done?

View 6 Replies

ActionScript 2.0 :: How To Match Variable A To B

Jun 23, 2010

I want to make a mail script. The user will enter the recipient's name, which is linked to variable "name". I've got a variable, EMAILA which is
ActionScript Code:
var EMAILA {
Cem : "cemgokmen97@gmail.com",
Muhittin : "gokmen@itu.edu.tr"
}

And on the SEND button, I have this code :
ActionScript Code:
on(release){
if(name){
getURL('mailto:'EMAILA[name]
}}

But for some reason when the mail client opens, the address does not appear in the "To" box.

View 6 Replies

Android :: Cross Platform Game - IOS : Develop A Very Simple Game For Iphone/ipad?

Mar 7, 2012

I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?

View 1 Replies

ActionScript 3.0 :: Game That Populates User-designed Cards Into The Game Using An External Xml File

Apr 24, 2011

I'm making a game that populates user-designed cards into the game using an external xml file. My main class loads the xml file and then calls to the "Card" class, which wants to use the xml file. I've tried using this.parent and it just gives me a null object reference error. This is what I have so far: Main.as

[Code]...

View 2 Replies

ActionScript 3.0 :: Making Game And Objects Would Spawn At Random And Be Able To Click But When De Game Starts Itself

Jul 4, 2010

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 Replies

ActionScript 3.0 :: XMLList Empty When Only One Match?

Sep 7, 2010

I have a problem with XML filtering. [code]If there is only one result, trace is empty. If there are 2 results or more, they will be traced fine. Is it because one result is not an XML 'list'? If so, how do I get the results if there is only one match?

View 2 Replies

Scale Swf To Match Browser Size?

Jul 17, 2010

I've created a website in Flash and have posted it to the net. I want it to scale as the user resizes the window, but having little formal training in Flash I'm not entirely sure how to go about it.

View 4 Replies







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