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


Similar Posts:


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 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 :: 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

ActionScript 3.0 :: Flash - Writing A Simple Game Rule For A Platform Game?

Feb 28, 2011

I'm creating a game at the moment for my university course and it involves the player character jumping on top of boxs twice to break them as opposed to just once.What would be the most efficient/simple way of writing this in Actionscript 3.

View 1 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

Flex :: Data Grid Not Displaying Data In Array Collection?

Oct 7, 2010

My data grid is displaying stale data, rather than the real time data available in it's data provider (array collection). I've tried refeshing the data in the collection, but that has no effect. Below is my code, does anyone see what could be the problem?

<mx:Accordion/>
<fx:Script>
<![CDATA[[code].....

View 4 Replies

MX04 Creating Simple Flash Game

Sep 8, 2009

I'm sort of new to Flash, have been using it for ages but just to animate, i haven't done any programming or interactive stuff for years, so i feel new to it again!Creating a very simple platform.Movie clip of the character (instance name z_1)- runs button - when pressed makes z_1 invisible and loads another movieclip of him firing a weapon (z_fire). (also makes ground stop moving- basically game is a static running animation, over a moving ground, if that makes sense)This all works fine, i even figured how to make the score increase!After the firing animation is finished (there is a stop on the movieclip) i want the original running animation to be visible again and for the ground etc to play again. The firing animation is only 12 frames long so i imagine i need to tell the button to resume normal service on the stage after that time period![code]It's probably completely wrong but it works, i just need to know the extra code to make the original animations start back again after z_fire has played.

View 2 Replies

Professional :: Buy Book To Make A Simple Flash Game?

Jul 29, 2010

I need to make or buy a template for a simple flash game for a clients website. It has to be legit to buy. It is about 5 pages long. You are asked a question, you select a radio button for the answer to the question, it compiles all your answers and gives you a result.I know flash pretty well but ccording to budget and time.it is best not to have to experiment.

View 2 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

Simple Flash Form Variable - Collect Data From A Form, Then Pass That Data To An Asp File?

Oct 19, 2009

I am trying to create a simple form using Actionscript 3 that will collect data from a form, then pass that data to an asp file. I have attached the following code to the submit button,but this is not working.I'm not sure if I have to add anything else and I don't understand why this is not working. I'm trying to load all the variable info into one variable called email form.

submit_btn.onRelease = function() {
var emailform:text;
emailform.email_txt = email_txt.text;[code]......

View 1 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 :: Read Individual Data From Array Collection?

Jan 11, 2012

I used var dp:ArrayCollection = new ArrayCollection(container.GetVotesResult); to get the JSON data from GetVotesResult method. I get the values as below.

[Code].....

How do I retrieve the 2nd, 3rd, 4th and so on (if it has) array datas individually and dynamically. Say, I want to take 'Atext' from all the array.

View 3 Replies

ActionScript 3.0 :: Sorting Array Collection (Data Fields)

Nov 14, 2009

I'm new to actionscript but have some basic programming skills. I've downloaded some code that finds and displays fields from an attribute table of a feature, from my limited knowledge it seems to be adding this data into an array collection, the problem is I need the data fields to be displayed in alphabetical order, or in the order they are originally stored. I tried to use the sort function to order the array but can't get it to work.

The source code is below:
<mx:Script>
<![CDATA[
import com.esri.ags.events.DrawEvent;
import com.esri.ags.events.IdentifyEvent;
import com.esri.ags.geometry.Extent;
import com.esri.ags.geometry.Geometry;
[Code] .....

View 2 Replies

ActionScript 2.0 :: Data Collection With No Server Side Action?

Nov 20, 2003

I want to make a form on my site to collect users' names and emails, but the site is being hosted at an institution that has no back-ending server side stuff. Is there any way that i can collect simple data without the host server doing anything? with the getUrl command?

View 7 Replies

ActionScript 2.0 :: MX Simple Quiz Game?

Dec 12, 2003

I have developed a simple quiz game, but im having a slight problem with it.I have a variable set to myScore=0

Everytime you get a right answer it should increment 2points But when you get all 3 answers correct i get a final score of 4points

View 2 Replies

Pointers For Designing Simple Interactive Game?

May 13, 2009

I'm looking to build a very simple (hopefully!) interactive game.

- A number of balls are situated at the bottom of the stage.

- There are several dropzones which the balls can be placed in.

-Once a dropzone is occupied with a ball, its not possible to populate that the dropzone with another ball until the present one has been removed. -Depending on which balls are present in the dropzones, the balls animate differently. the red ball is placed in a dropzone.  There are currently no other dropzones populated with a ball.

[Code]...

View 5 Replies

ActionScript 1/2 :: Create A Simple Timer For A Car Game?

Aug 25, 2009

I just want to create a simple timer for a car game which notes the lap time each time you cross the finish line. I then want to be able to use the "gotoAndPlay (frame number)" once either a certain amount of laps have been completed or when the timer hits a specified number.I have exhausted tutorials, none of which actually work - what im looking for is 'i think' actually quite simple but i am having great difficulty.... The car game tutorial with 4 parts which seems to pop up everywhere does not help as it is very complex and can only be used when the game is designed in the way that the guys has made it.

View 3 Replies

ActionScript 3.0 :: Create A Simple Platformer Game?

Dec 12, 2009

I want to create a platformer game, but there is no tutorials that actually tell you how.What I dont understand is:

- How the level changes when you get to a certain point
- How to do collision with walls
- How to make the player move

View 5 Replies

ActionScript 3.0 :: Most Efficient Way To Program Simple Game?

Nov 26, 2010

I am developing a Jeopardy-like game in Flash CS5. I am familiar with Flash CS5, but new to AS3. I don't know the language well, and to top it off my code hints don't work in Flash CS5. After researching this I've learned it is a bug that Adobe has yet to resolve. Anyway I am trying to program this game with very little knowledge about the language I am using. I've been watching tutorials and googling specific questions, but it comes down to the fact that I don't speak the language and don't have the resource (code hints) to make the language more available to me.What I am trying to do is simple:Imagine a Jeopardy game board.On the answer screen there is a button that takes you back to the gameboard. Here's the catch: the gameboard must remember which boxes have been chosen and not display those dollar values.

I understand how to program the buttons. I've been using gotoandstop for that. I am trying to figure out the best way to program this so the game remembers which boxes have already been chosen throughout the entire game.The specific question I have at the moment is how to reference an instance on another frame than the frame that has the code on it. For example: The gameboard is on frame 5. When the category A for $200 box (buttonA1) is clicked a Boolean var called 'chosen' is created and assigned the value of true. then the gotoandStop command moves the game to frame 10 which is where the question for category A for $200 lives. There is a button on frame 10 that takes you to the answer, which is on frame 11. And on frame 11, when you click on the button to take you back to the gameboard, I want it so that if chosen = true then buttonA1.visible = false. I get an error because buttonA1 doesn't exist on frame 11 - it lives on frame 5 and I have no idea how to reference it so that it will not be visible.

View 2 Replies

Java :: Math Behind The Red Ship In Simple Game?

Feb 27, 2012

the game is a little flash component found here:[URL].. i found that link here[URL].. I have been using/converting the examples they give in the second link but cant get my "missile" to behave correctly. I am using java and andEngine combo. Here is what I have right now:

[Code]...

this code just makes the object travel to the upper right hand corner of the screen and it doesnt move after that. so i am missing something

my end goal is to have an object that will chase the users touch coordinates. I know how to have the object follow such coordinates but I dont want it to follow the exact path, but rather the shortest path to the most updated coordinates. so more like an intercept course

View 1 Replies

ActionScript 3.0 :: Make A Simple Multiplayer Game?

Jun 16, 2010

Make a simple Multiplayer game (Java server, AS3 client) and i was wondering, how would i get people to be able to select their clothing?

Im going to have the data stored in a database, but i want to know, how would i go about keeping a shirt/pants/shoes of each colour and merging them (For each character's combination) to create a new movieclip (username_figure for example)

View 3 Replies

ActionScript 2.0 :: Create A Simple Hangman Game?

Jan 6, 2009

I have tried to create a simple Hangman game, it works great, but I have two problems. Number one, the course I�m taking requires that there should be an if else statement in the actionscript programming (in an appropriate manner in connection with the user interaction) and I realy don�t know how to fix that. I�m tearing my hair. Number 2 Preferably I would like the program, alternating between several different words.

stop();
okey._visible=false;
akey._visible=false;
pkey._visible=false;

[code].....

View 2 Replies

ActionScript 3.0 :: Simple Maze Game (Pac Man Style)

Jan 29, 2010

I want to create a really basic pac man style maze game, its actually for some marketing materials and it will be really used as means of navigation rather than as a game, I want pac mac to eat certain words and when that happens it will tell the user about that topic. What the best way for pac man to work his way around the maze would be? Would I be best using hit detection? Also what would be the best way to remove the pellets as he eats them? visibility or remove child?

View 3 Replies

Flash :: Game - Sending Data To Database?

Dec 21, 2009

I am looking for some advice on creating a flash sound game. The visuals are all done as is the animation. I am trying to create a piano, that you can play a tune, somehow (when pressing down a button) 'record' the sound and once you have finished, send the link to the sound you have created to a friend, where it can be played back when they visit the website and see what you did.

View 1 Replies

ActionScript 2.0 :: Flash8 Simple Game Score Not Working?

Mar 28, 2011

I'm following a tutorial to make a simple game. The aim of the game is for a player to evade a flying enemy ; the higher the score, the faster the enemy. The main elements in the game are the enemy the player and a score card.

However, from following the tutorial, and adding the dynamic text field etc....the score doesn't actually work.

This is the code that I was instructed to place on the first frame of the Scripts layer:

//Game Variables
enemySpeed = 5; //Set Enemy initial speed
numberEnemy = 4; //Change this to add more Enemies
score = 0; //Set initial score to 0

[Code].....

View 2 Replies

Unable To Create A Simple Spot Difference Game

Feb 17, 2010

I'm looking to do a very simple spot the difference game using flash CS3 and actionscript 2 for a school project.

I have 2 images on separate layers on a timeline in the same frame, which has been paused using the 'stop' command. I am looking to have around 4 differences that, when clicked, will be recorded at the bottom of the screen.
 
The problem is, I am unable to find a way to get the differences recorded at the bottom in the order the user finds them, where each one is entered when the user clicks it, leaving gaps for those that haven't been found.

Being only a basic user, I am only familiar with scenes and basic timeline controls, and i'm hoping there's a relatively simple way of achieving this. However I am perfectly comfortable with using more complex actionscript, having done some programming before.

View 9 Replies

ActionScript 3.0 :: Make Simple Multi Player Game?

Mar 30, 2012

I want to make a simple multi player game so any one give me sample code or how to do that ?

View 1 Replies

Jquery :: Simple Multiplayer Game In Ruby On Rails?

Oct 6, 2010

I have created a simple card game in Ruby on Rails+ajax with jQuery for animation. It's working Ok, and I wanted to develop a multiplayer version. It looks like it's not so simple as i thought. I have also tryed to port the game completely to JS into the Canvas tag. This is possible for me and I could make the animation there much better however I still don't know how to add a multiplayer part in it.

View 2 Replies







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