Help with flash game

I recently created a game where a ton of smileys go through the screen and you have to shoot them. I tried to add add a system of notation to so every time you click and destroy a smiley face to the partition and if you miss less, but my code doesn't seem to work;  not to mention that I'm not very good at coding lol. I also want to if you miss enough faces you lose the game. How would I go to do?  Here is my code so far:

onClipEvent (load) {}
startDrag (this, true);
Mouse.Hide ();
this.swapDepths (9999);

}
onClipEvent (mouseDown)
{
Might = new Sound (this);
playsounds.attachSound ("shot");
PlaySounds.Start (0, 1);
for (i = 1; i < = 5; i ++)
{
If (this.) HitTest(_root["face"+i]) & & _root ["face" + i] .dead == 0)
{
_root ["face" + i] .gotoAndPlay (2);
_root.score += 10;
}
}
}

It was made into a superior version of CS4 and I used AS2. Please and thanks in advance, I hope to get help.

The line of route of return I had you replace by code textfield, but both leave the code of textfield.  If the output always shows the value of score change correctly, then you did something wrong with the implementation of the TextField.

Tags: Adobe Animate

Similar Questions

  • NEED HELP WITH FLASH GAME!

    Hi all

    I am brand new to the forums here and I need help!  I'm on a very tight schedule for a flash game project, and can't seem to understand my problem.

    In my game of people shoot 4 different moving images and get points. Simple right? Although images is a question mark that can shoot people and when they do, I need flash to stop the timer game, a new popup window, the multiple choice question appear in the window and wait for the user to respond.

    NOTE: I would also like to be able to customize the size and location of the pop-up window!  Also, the question must be random.  I have a list of questions in a word doc.

    Then, if the answer to the question properly close window award 10 points and continue the game.  If you incorrectly answer the question, saying bad and then display the results of end game.

    Right now I have it to where it opens a pop up in a web browser and askes the question there.  The question is chosen at random from a file called random.html.  But I don't want the game to work this way. I want the game to open the pop in flash.  Can anyone help?  Time is a few hours, SORRY for THE SHORT NOTICE!

    Kapelski

    Everything to do with the movieclip is possible.  You can make sure the questions are changed dynamically whenever he appears... but it is a matter of design to be.  This has nothing to do with the popups... This is a clip that you can control the visibility of and what it contains.  In the Flash file will probably be easier to manage than a popup window outside, as far as the aspect programming and scoring goes.

    Create a movieclip that has a textfield for the question, and all what he needs in the way of user interaction.  Unfortunately, I didn't take the time to give a detailed approach to design.  If you manage to create a shooting game, creating a movieclip which works as you describe should be a fairly simple task for you.

  • Help with rhythm game

    So I start University at the end of September (that is, 3d character animation) and need to get the grades to get in, unfortunately we have a flash of the im programming unit college course in now and we haven't learned anything at all and I mean nothing, we were given sheets printed and told to copy the code word for Word. so I really need help with my game. How would moving something my cursor? When I move the slider it follows it? also how to play animation click?

    My idea of the game is to have a style of rhythm game where the player moves the net and catches of the bee, something I thought would be simple to figure out how do

    It's my game at the moment, Ive used the code we were told to copy from the leaves and just changed the sprites:-any help would be amazing!
    https://www.dropbox.com/s/1pjbv2mavycsi3q/sopaceship%20rev7%20%20moving%20bullet.fla

    http://orangesplotch.com/blog/Flash-tutorial-elastic-object-follower/

    var distx:Number;

    var disty:Number;

    var momentumx:Number;

    var momentumy: number;

    follower.addEventListener (Event.ENTER_FRAME, FollowMouse)

    function FollowMouse(event:Event):void {}

    follow the mouse in a more elastic way

    using the momentum

    Follower.x = DISTX - mouseX;

    Gefrierschrank follower.y = - mouseY;

    momentumx = distx / 3;

    gefrierschrank = momentumy / 3;

    a little momentum

    momentumx * = 0.75;

    momentumy * = 0.75;

    go get that mouse!

    Follower.x += momentumx;

    Follower.y += momentumy;

    }

  • Need help with Flash - really basic!

    Hi, I really need help with Flash and quick. I have to create an auto-run cd, but before I can create that, I have to make everything works! I took a class in College Flash, which up to 1 1/2 ago so im kind of knowledge missing!

    My first problem is as follows:
    I have the homepage, and it contains a button English and french.
    When you click on buttons, it brings you to the next page, either resourcesFr or resourcesEn.
    I tried to use the loadMovie script but and it works but the new page loads on the home page you can still see the English/french under buttons. How can I fix? I know its simple but I am short on time... Should I still use the loadMovie script?

    My other problem is that im trying to have another button to link to a folder. Use the script for getURL for this as well?

    Help!

    I was able to solve my problem... it was only the forward slash that were in the wrong way... so the correct code is:

    on (release) {}
    DRV = _url.substr (8.1);
    getURL (drv + ": / English/brochures");
    }

    Only took me 5 days... I think I need to buy a script book action! Laughing out loud

  • problem with flash games!

    I transform a flash game APK with a tool, after installation on the android phone I have a loop of bad rappid forever. can someone help me?

    Sorry, I don't know where I have to ask this question!

    you need to learn as2 and as3 to learn or hire someone to do it for you.

    There is no reliable shortcut.

  • Web site keeps refreshing with flash game to "Application activation" - Version 26.0

    Updated to v26.0 and now when I open the site http://www.dcpages.com/ wuth the value "Application activation" flash payer page refreshes continuously. It wasn't a problem with v 25.0. I also have a second machine running Windows 7 (64 bit) and it has the same symptoms.

    Hmm, okay, we'll take a break until the cleaning is complete.

    This is for possible later use, some standard information that addresses the most common issues with the Flash Player plugin. I'm sure you've seen some of it before, but just in case:

    (1) If you have any recorders/downloaders who interact with Flash media to ensure that they are as up-to-date as possible, or disable them temporarily.

    (2) disable graphics hardware acceleration in Firefox and Flash

    (A) in Firefox, uncheck the box here and restart:

    the button Firefox orange (or the Tools menu) > Options > advanced > General > "use hardware acceleration when available.

    (B) in Flash, see this article from Adobe technical support: http://helpx.adobe.com/flash-player/kb/video-playback-issues.html#main_Solve_video_playback_issues

    (3) turn off mode protected (Windows Vista and later)

    See this article from Adobe support under the heading of 'Last resort': Adobe Forums: how to fix protected Flash Player for Firefox mode?

  • need help with flash player

    I have upgraded to windows 10 and you do not have adobe flash on my computer. I tried to download it, but I get a message that says that adobe flash player is built into windows 10 and does not need to be downloaded. How can I fix it?

    @ !

    Hi Donna,.

    Please see the link below, it should help:

    Flash Player issues. Windows 10 | Microsoft edge

    Let us know if that helps.

    Kind regards

    Bani

  • How to deal with several Android with Flash-&gt; games of AIR ressolutions

    Hello

    I have some Flash games that want to run on different Android devices. How then? I noticed in one of my games, I check "full screen" during the export, the playing surface does not all the available space on the screen. I guess it's because as the aspect ratio.

    I saw this nice tutorial to solve this problem on Flex apps/games: http://gregsramblings.com/2010/05/06/scaling-an-adobe-air-application-to-fit-multiple-reso resolution netbooks /

    Is there a similar solution for basic flash games?

    Thank you!

    That article looks like it's oriented toward desktop applications, and he made sure the window is never larger than the original size.

    You'll read, any minute now, that many people prepare for not to scale and then use the code layout to position the interface to look right and even to take note of the DPI of the device to ensure that the buttons are the right physical size. It is very good for utility-type applications, but if you have detailed and illustrated, background or any kind of art fixed bitmap, it may not be the right way to solve the problem.

    The way that the problem is not to do a scaling at all, I leave that to Flash, but I spare content out of the edges of the scene, which will be on screens larger or largest.

    The first time I used this approach I did the Flash scene to be 480 x 320 and had additional content above and below the stage, for a total of 360. This single file held exactly on the screen of the iPhone and the iPad in different aspect ratio. On the iPad, you would see the additional content.

    That works very well if you put on the page for the larger device and one have additional content for devices less broad, but there is only a single narrower than the iPhone, the iPad device. So now, I spent the technical horizontally.

    My internship is now 1024 x 768, and there are a lot of additional content on the left and right edges. I have enough here that it will always fill the screen on the larger device, which is the new Samsung Galaxy Nexus.

  • Basic Help with Flash v10 (creating a simple calculator)

    I have Adobe CS4 Pro with Flash v10.  I am trying to create a minimal and simple calculator that adds 2 numbers.  I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html.  Initially, I was unable to name the variables to all objects, but got this cleared up by selecting ActionScript 2.0 (was set to 3.0).  At this point, the calculator accepts two numbers, but when I select the button 'Add' the associated code, as shown in the tutorial, nothing happens.  Does anyone have a suggestion as to what I might hurt?  Thank you.

    Remove all the variables in the textfield of the properties panel.  If you have also done the same for the total textfield instance name there, use:

    {We (Release)}

    total.set_Text = Number (firstnumber.text) + Number (secondnumber.text);

    }

  • Need help with Flash banners with the Player Version 10.1 for Google adwords

    Hello world

    I've created a banner animated in Flash Pro CC and its going to be used for Google Adwords. But they need banners to be with version 10.1 only according to the features of Google.

    Is there anyway keep version 10.1. Will be the banner animations remain intact?

    Please help me because I'm stuck in the present and campaign to live here tomorrow.

    Thanks and greetings

    Vikas Sharma



    Download flash cs6 and use to post your ad or expand flash se publishing capabilites.  If you have a cc flash subscription, you can download and use flash cs6 time connected in your cc account.

    Here's how to develop capabilities flash cc edition: http://forums.adobe.com/message/5511080#5511080#5511080

  • Need help with a game

    Good so I created a stick figure using the online tool and do the walk animation. Each part of the body has its layer and my question is how do the stick figure move and jump using the arrow keys. So far I've done the character to move and jump, but I want also my walk animation starts when I press the arrow button and stop. I'm still a beginner and I play with some code and tutorials, but I can't make it work properly. I already have a platform game with a bouncing ball that was easy enough and now I decided to expand my knowledge by doing something more complicated. I would appreciate some help and explanation.

    123.png

    If your animations frame by frame are just to make the movement of the body and not really having body change location, and then for the object to move, you can use code and adjust/increment the _x and FLF properties for it.

    Here's some code that would make the figure move the arrow keys on the keyboard-based...  In this code, "the figure is the name of the movieclip that contaons all the animations of the body movement."  If the animation that you show above is on the main timeline, then you need to move inside the movieclip figure...

    var index = 3;  adjust the speed of traffic

    var keyListener:Object = new Object();
    Key.addListener (keyListener);

    keyListener.onKeyDown = function() {}
    If (Key.GetCode () == 38) figure._y = increment;  to the key
    If (Key.GetCode () == 40) figure._y += increment;  Press and hold
    If (Key.GetCode () == 37) figure._x = increment; left key

    If (Key.GetCode () == 39) figure._x += increment; right key

    }

  • Help with Flash 10.3 settings

    I have a pretty silly question.  Third-party flash cookie settings can be managed anywhere in the native version control panel 10.3.183.7?  I've never used this front panel, I've always used this one.  Now I'm told that the one I've always used is an 'old' version and I shouldn't use.  Is this true?  If so, how can I manage my third party flash cookies in this "new"version?.  I am running Windows XP with Firefox 5.0.1.


    Any help would be appreciated - thanks!

    Certainly, you can continue to use the online version you used.  It won't go away anytime soon.

    Chris

  • Need help with Flash Builder

    I use a flash 4.5 adobe generator,

    Recently, I created a login page in flashbuilder... On my page, there is a button link [say registry]

    I created a form of Regisistration.

    Now how to bind this registration form with a link button [register] to my login page...

    Can someone help me!

    Hello

    The following link will help you. Please go through it.

    http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff2.html

    Thank you and best regards,

    ------------------------------------------------------------------------------------------ --

    Vibhuti Gosavi . [email protected] | www.infocepts.com

    ------------------------------------------------------------------------------------------ --

  • Help with Flash banners on the site

    I have 3 banners on a Web site.  Each of them turn to the different "ads" with different URLS.  When they are displayed in the location of the direct url file, everything works perfectly.  They click in the right place.  However when they are read together, on the main site, they will click through.  Anyone has an idea why this is?  I'm EXTREMELY new Flash and really only know the basics so that any help would be greatly appreciated.   The site is HERE.

    Thank you!

    Yes, you must correct the html integration.  in particular, there is no allowscriptaccess parameter:

    http://kb2.Adobe.com/CPS/164/tn_16494.html

  • Need some help with FLASH

    Hello world

    I'm a very new to using flash 8 and I need som help.

    I know what it mifgt be a simple for some of you, but for me it's a chlange...

    I need to create a page with 6 buttons

    I can create a button without a problem and I can scrupt uncertain and it will open url

    However, if I have 4-5 buttons every thing work towards the top, down etc but the script does not work then link do not OUP page...

    I'm sure it's a simple soluton to this question

    Help, please

    I would like to join .fla file to show what I was doing, but it seems that it's not possible...

    Anyway please help if you can

    Sincerely

    L.

    Your instance names must match those that you use in the code.  The name of the instance provides the means for code assignment and control objects.  If you have btn1 as instance name, the code for this button should use this name...

    Btn1.onRelease = function() {}
    getURL ("http://www.google.com");
    }

    Think of it in terms of talking to the touch... you gave this button name "btn1", so your code needs to say "Hey, btn1, this.

    In addition, in order to keep things clean for yourself, you must create a layer for actionscript, where you take all the code you are currently distributed through the layers of each button and move to that layer.  I often create some to separate the different types of actionscript, variables, functions, actions, but you can do what suits you best.  But having it on separate layers makes it easier to find and manage.

Maybe you are looking for