ActionScript 2.0 :: Add Score (if Correct +10), (if Wrong -10)

Dec 14, 2009

I have a game which I want to add score (if correct +10), (if wrong -10)

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Checking Three 'if' Statements Are Correct Or Wrong?

Jul 24, 2009

I'm working on a quiz where a user has to drag three movie clips to correct positions then press the 'next'button to move on (calls funtion nxt).I have nxt function to check to see if the three movie clips have been dragged onto the three correct positions (other movieclips),the code works but only if all three are correct.I want the function to check to see if all the clips have hit the right target, 

if so, then add +1 to the 'score' and go to frame 'end'

if the clips aren't on the right target then just go to frame 'end'

At the moment the nxt function doesn't work if the answers are wrong.

function nxt(event:MouseEvent):void
{
if (asc1_mc.hitTestObject(blank1_mc))[code]...........

View 3 Replies

ActionScript 2.0 :: Drag And Drop Counter And Message To Say Correct Or Wrong

Jun 15, 2011

i have created a simple drag and drop game where users have to match shapes by dragging and dropping. What i would like is for a counter to count each correct drop and display a message if they are success-full.[code]

View 1 Replies

ActionScript 2.0 :: Get Score Text Box To Gotoandplay Another Frame - Scene When It Hits A Certain Score?

Aug 10, 2004

Im designing my own game in flash, iv set up a score text box and it works fine. Except i just cant seem to get it to gotoandplay another frame,scene, when it hits a certain score??

View 4 Replies

ActionScript 2.0 :: Score - Movie Go To Frame 3 If The Score = 500?

Feb 17, 2004

i am building a shooting game and i was wondering if it is possible to have the movie go to frame 3 if the score = 500.I.E Score is displayed in a dynamic text box and everytime the enemy is hit the:

_root.score +=50
=============
on the first frame of the film i have the code

if (_root.score == 500) {
gotoAndPlay(3);
}

View 2 Replies

Actionscript 3 :: Multiple Dynamic Text Score Display - Modifying Each Text One After Another And Incrementing The Score By A Certain Number

Feb 23, 2011

I have a result screen that shows bonus points and such. I want each text field to increment one after another and also have it increment by a certain amount each frame. Result Screen pops up. First is the player score check the player score, is it more than the score we want to display if the player score is greater than the player display score by 100 increase the player display score by 100 if the player score is greater than the player display score by 10 increase the player display score by 10 else increase the player display score by 1 when finished move to the next score...and so on. I have thought of using timers to move from one score to the next, but not being in an Event.ENTER_FRAME it only does one if then moves to the next one.

Also the if statement for incrementing the score looks ridiculous and I'm thinking there has to be a better way to do it. I was thinking of making it a separate function but then I wouldn't know what to return, or how to return it so it looks like its increasing and not just showing the total number instantly. I'll try to expand on it a little more.

View 1 Replies

ActionScript 3.0 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?

View 4 Replies

ActionScript 2.0 :: How To Add Score

Feb 25, 2009

i want to make it so when ever the ball hits the edges or the rectangle touches the ball it subtracts 5 points from the score but every second adds 1 point to the score heres the file ball-border-follow.fla

View 5 Replies

Score Counter That Follows Player?

Oct 13, 2009

so I've made a working score counter and all that working fine, but I cant find a way to make it follow the camera/player without glitching up.

View 1 Replies

ActionScript 3.0 :: Top 5 Leaderboard/score?

Mar 11, 2010

I'm having some issues getting my top 5 score board to work.. it's done in AS3 and is saved using a shardObject - the loading/saving aspect works 100%, but the actual scores are getting confused and overwriting each other, EG if you get the top score, it replaces both the 1. and 2.

[Code]...

View 3 Replies

CS3 Making Textbox With Score?

Apr 2, 2011

i have created a mini-game in CS3 that is like a race using KEY_UP and the score its equal to the number of times the the right key's go up. that is already done, my problem is to display the score. i'm a bit confuse of how to use a textbox. and the textbox have to appear on the Simbol that won. i create the textbox and insert its type input to appear on the tela, but put it to work with score is the problem :S

View 1 Replies

ActionScript 3.0 :: Buttons That Add To A Score

Nov 30, 2008

I'm trying to make an interactive quiz with a few key points:each answer has to add to a score, and the score has to be displayed at the end of the quiz in a dynamic text box.I've coded all the buttons and finished the animations, but I still need to set it up so each correct answer gives the player a point. How would I go about doing this, plus displaying it at the end? I might feel ambitious and try to have two different animations at the end, a "good" ending and a "bad" ending. How do I get the animation to go to a specific frame depending on the players score, depeding if it is above or below a certain number?

View 1 Replies

Swf - Getting Value From Score Variable In Flash?

Aug 25, 2011

I am editing a flash game,I want that whenever user press the submit button,his score should be saved in the database at my Server.How i can achieve this task?I had got the variable in which score is stored.I can i send this to my database.

View 1 Replies

ActionScript 3.0 :: Score Add 1 To Total

Oct 18, 2010

when a user clicks cardbtn button i want it to add 1 to there score.here is the code. i have a textfield called card_txt on the stage.[code]

View 1 Replies

ActionScript 2.0 :: Display A Score In CS4?

Apr 14, 2011

I'm trying to display a score in CS4 using AS2.0. The score is out of 14, so the display should read "1/14", "2/14" etc. I've got some code that scores correctly, but would like the text box to incorporate the "/14" which is static text. If I sit a static text box next to the dynamic text box, it doesn't align properly. I've anti-aliased the text (Bitstream Vera Sans Bold), but the alignment is still not reliable, even checking type spacing, correct Y position on page etc. The code I have currently is:

var score:Number = 0;
function addScore() {
score++;
scoreBoard.variable = score;

[Code]....

In this instance, the "/14" is not displayed when the score is zero, then displays "1/14" when the score is 1, but then displays "a/14" when the score increases.

View 3 Replies

Actionscript 3.0 :: My Score Keeps Resetting

Jan 14, 2010

I have a character on the stage in my fla that when hitting a particle created in an a particle.as removes the particle. I have the code for removing the particle and also a score counter that adds one everytime a particle is removed (located in my particle.as). My problem is the score keeps resetting or I get sporadic results (not sure which) for example here I traced the results[code]...

View 1 Replies

Actionscript 3.0 :: Way To Display Score

Jun 6, 2011

I have deleted and earlier post where I think I askd to many qustions at once, so I'm breaking it down and solving one problem at a time.

I need to display the current score in a textField.

I have worked out how to display the initial valu (0), but having problems incrimenting the score.

Here is what I have come up with so far, but th score only changes once. It changes to 1 but I would of thought it would keep adding one on very press?[code]...

View 1 Replies

ActionScript 2.0 :: How To Creat A Score

Mar 25, 2004

i just wanted to know how to creat a score. for example, i'm creating a brakeout game. and every time the ball hits a brick i want the brick to give you a point like 20 points per brick.if my ball doesnt hit my paddle and hits the ground, can you show me or tell me how i cant take lifes away. maybe 1 life down and you have 2 left?

View 6 Replies

ActionScript 2.0 :: Set A Limit Of A Score?

Apr 1, 2005

is there a way to set a limit of a score. eg they can have a maximum of 90 (works)but they can only have a minimum of 60 (cant get it to work)

its probably really easy, but it just wont work....

View 11 Replies

Skipping To Wrong Frames

Aug 3, 2009

I'm making a flash company profile in the style of a website, except it won't be uploaded online.and i made each button skip to a frame that i already named

some of the buttons are skipping to the wrong frames for some reason,the ones that are not working properly have some pretty big picture files on them,could this be the reason or is it just an action script mistake?

View 1 Replies

CS3 :: Playing In Wrong Order

Aug 26, 2010

I did a banner in flash CS3. I did 8 things and you see them one after the other one. The first time that it plays it goes on the right order but after it finished, when it normally has to start playing again, it plays in wrong order (the first then the third, the last, the second again the first, last and so on), it just does what he wants and not what I did.

View 1 Replies

ActionScript 3.0 :: When Typed Many J's.only First Looks Wrong?

Mar 13, 2009

when I type j in the input box (or grid) component it looks like i. is it bug? when typed many j's.only first looks wrong.

View 2 Replies

Professional :: IE Loading Wrong Xml

May 26, 2011

I have built a website that contains two flash galleries on two separate pages.Each .swf galllery is meant to call a separate xml, loading the relevant text and images.The galleries work perfect when using Firefox-windows, Firefox-mac and Safari and on my local machine(macbook)The galleries do not work using IE-windows, the problem being it loads both galleries with the same xml. [URL]

View 3 Replies

Flash :: Particularly Wrong With Function?

Jan 9, 2012

Is there anything wrong with this function?

[Code]...

View 2 Replies

ActionScript 3.0 :: Error And Nothing Is Wrong

Sep 24, 2010

can u re-write the code? im not sure im getting it.

View 9 Replies

ActionScript 2.0 :: My Buttons Gone Wrong

Jun 24, 2005

I am not sure why they are not wroking but I have converted the buttons to th button symbol.

View 11 Replies

[CS3] Score Counter In A Shooter Game

Nov 24, 2008

I have a simple shooting game set up. 25 monsters appear on the screen, one after another, until no monsters are left. If you hit one before it disappears, the score increases. If you don't, the score stays the same.

In the actions frame, I placed an empty dynamic text box named score, and set it equal to 0 (declared in the main actions frame). But, seeing as though the monster actions are coded into the library item itself, do I have to declare score, and the score increase there instead?

View 4 Replies

ActionScript 3.0 :: Cant Reset Score With Button

May 7, 2010

I've been making this animation for a Uni project but i've come across some really annoying bugs which are stopping me from getting the top marks and I was hoping someone here could help!

-Cant reset score with button

-Can't move to next Scene

I wasn't sure where the best place was to upload the .fla so I picked mediafire.so far in my attempts to fix the reset score i've tried adding.[code]

View 2 Replies

ActionScript 1/2 :: On Hitest Make Score Go Up?

Oct 18, 2009

Well i have an actionscript that will make my bullet touch the enemy it will go to a different frame alter this so the enemy will dissapear when they touch and also the score goes up by one?

onClipEvent (enterFrame) {    if (this.hitTest(_root.Enemy)) {        _root.gotoAndPlay(2);    }}

View 3 Replies

ActionScript 1/2 :: Quiz - Count Score At The End?

Nov 23, 2010

I have a working quiz but I want to know how to get the score of the number of correct answers the person got but I can't seem to figure out the code for it. This is my code below.

stop();// movie clip waits on buttonsgloss_mc._visible = false;// set the gloss initially to not visiblescore_int = 0;// score on the quiz is initially zero// button functionsq1_btn.onRelease = function() {    scoreQuiz_fnc("1");};q2_btn.onRelease = function() {    scoreQuiz_fnc("2");};q3_btn.onRelease = function() {    scoreQuiz_fnc("3");};q4_btn.onRelease = function() {   

[code]....

View 5 Replies







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