Remove symbol points or stop?

Hello!

I am currently doing the game design at the University and have recently begun to look 3 action script. I'm not too bad and can usually find the answer to what I'm looking for, but it only has really left me speechless. I want to add an element to a game that I do it so that when it is hit it gives a few points and disappears. We were taught to do this (so far) with hitTestObject and I'm having a problem where I can get the symbol of the element to disappear but I'm still in the position I still earn points. I tried to look for it, but I'm not finding something that works. So, any help would be greatly appreciated as I want to throw this laptop out the window right now

This is what I have for my 'play' now, please excuse something crazy I'm just learning action script and have probably something crazy in there

If the character key piece
If (thief_mc.hitTestObject (coin_mc)) {}
If (internship. Contains (coin_mc))
removeChild (coin_mc);
increase of 5 points
score += 5;
score_txt. Text = String (score);

}

Is it possible to stop at 5 points for the symbol or remove it to stop any other vantage point of being?

Oh, you are missing a hug:

If the character key piece
If (thief_mc.hitTestObject (coin_mc)) {}
{if (internship. Contains (coin_mc))}
removeChild (coin_mc);
increase of 5 points
score += 5;

score_txt. Text = String (score);

}

 

}

Tags: Adobe Animate

Similar Questions

  • Installing the card Point 2011 stops because the prerequisite programs moved. What should I do?

    Installing the card Point 2011 stops because the prerequisite programs moved.  What should I do?

    Hello

    Check with the help of MapPoint and in the MapPoint Forums.

    Highway, Streets & Trips, MapPoint - Forum
    http://social.Microsoft.com/forums/is/streetsandtrips/threads

    MapPoint - Support
    http://www.Microsoft.com/MapPoint/en-us/support.aspx

    Support for MapPoint, streets & trips and Highway
    http://support.Microsoft.com/ph/851

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Cannot move or leave the pointer to stop in a place using Microsoft Wireless Mobile Mouse 6000

    Original title:

    I can't find a way to get the mouse move or allow the pointer to stop in place so I can use the keyboard correctly.

    Hello

    1. what version of Windows is installed on the computer?

    2. what program are you using when the mouse starts to jump around?

    3 are you aware of any changes made to the computer, before the show?

    Assuming that you have installed on the Windows 7 computer, follow these steps.

    Method 1:

    Step 1: Safe Mode

    Start your computer in safe mode and check the number.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: Clean boot

    If you are not facing the problem in safe mode, and then put your computer in a clean boot and search for the question.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: once you have determined the problem by using a clean boot procedure, follow step 7 in the article to restore your computer to normal startup.

    Method 2:

    Check out the following link.

    Troubleshoot a wireless mouse that does not correctly

    http://support.Microsoft.com/kb/321122

    See also,

    Change the settings of the mouse

    http://Windows.Microsoft.com/en-us/Windows7/change-mouse-settings

    I hope this helps.

  • There are 3 files on my flash drive that can not remove any point I try

    Good night, there are 3 files on my flash drive that can not remove any point I try. What can I do?

    I hope this seven Forums tutorial can help you a lot:

    http://www.SevenForums.com/tutorials/79699-Undeletable-file-delete.html

  • Windows 8 endless start - points never stop turning

    windiws 8 endless start - points never stop turning

    Hello everyone, a week has passed since my pc (toshiba - Windows 8 enterprise) began to give me this strange problem: when I start the computer, the startup never goes after the windows logo screen and the rotation of the points. .. the computer starts only in Mode safe...
    I tried to start with "Enable Boot logging" and when I turned off and restarted the pc in safe mode, the ntbtlog.txt file contained a lot of "BOOTLOG_NOT_LOADED".

    I have attached the file here ntbtlog.txt

    Thank you for your help

    Hi Tommy,.

    We have dedicated support for enterprise customers. I would have you post your query in the TechNet forums to improve assistance in this regard.

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w8itpro

    It will be useful.

  • How to remove '-' symbol of currency in obiee11g

    Hello

    I get data of currency like this-$ 31 000,0 how can you remove '-' symbol.

    Thank you
    ANI

    Use the abs function
    as abs (col)

  • How can I remove symbol in library?

    I tried pressing DELETE and right-click on the symbol, but the delete command is greyed out...

    Why can't I remove symbols?

    Hey there,

    Symbols can only be removed from the library when you're not in symbol editing mode - that is, you must be on the main level of the step to remove a symbol from the library.

    HTH,

    Joe

  • How can I remove restore points created daily by Software Distribution Service 3.0?

    Are not only all these points using the space on my hard drive to restore?

    A better program of disk cleanup is cCleaner. Delete System Restore points may be important if you have little free disk space. The ability to delete them is one of the tools options. You can selectively remove those created in less important moments.

    cCleaner also comes with a registry tool. Do not use this tool as any registry cleaner could lead to the creation of very difficult to resolve system errors.

    http://www.CCleaner.com/download

  • pointer that stopped working on the side of the wife of the computer

    As long as I'm on my side of the computer, the pointer works. When we move to users next to my wife, the pointer will start to move and then stop and nothing what to do he'll move again. What could be the problem?

    Create another user account exactly of the same type as your wife's account.
    Logon to the new account > the cursor does work?

    If so, I would say that your wife is corrupted.
    Here's how to treat the damaged profile (account):

    http://Windows.Microsoft.com/en-CA/Windows-Vista/fix-a-corrupted-user-profile

    Note: You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

  • How to selectively remove Restore Points in Windows 7 Pro

    The discussion that I found to this question did not address the selective deletion of restore points. It describes how to remove all but most recent which does not help me.

    Does anyone have an answer?

    Thank you!

    You are limited to the reduction of disk space used for the restore points. This will cause the oldest points should be deleted.

  • To remove a pointer in QML?

    I have move some objects to my UI in c ++ using a signal. Once I processed them I want to clean them and remove them.

    Can I do this in QML somehow, or should I send back a signal to c ++ to do it?

    My current idea is to use the tree of QObject to have all subclasses with their pointers etc in the tree and remove only the pointer in the foreground, is this best practice or suggest something else?

    As much as I know, there no way to delete items of QML C++ which were not created as types QML, and therefore you cannot pass a pointer to your components QML property.  Send a signal that calls the destructor is probably the next best thing.

    Using tree QObject and defining carefully the parent on everything is the best way to manage the memory, but not the more granular, so it depends on the amount of memory you use.  In most cases it's fine work.

  • Is it possible to change the pivot of a symbol point?

    Once a symbol created beachfront animate is possible to change the axis of rotation, so that it is not attached to the center of the object?

    Thank you!

    I found an answer here:

    Rotate an object from a pivot point?

    Thank you

  • remove the point by default dot dot dot in entering the password

    Anyone know how to remove points that are displayed as a default value in a password input box?  It's a pain to have to go back all these points when you want to enter a password?  And no I don't use no matter what model of placeholder values or anything... just out of the box default password input box

    What browser do you use?

    You have automatic filling packages or settings are turned on in your browser preferences?

    Nancy O.

  • How to change the alignment of the existing "Movie Clip" symbol Point?

    Hi all

    by:  Adobe Flash Professional CS6

    My Flash program contains a 'Symbol' MovieClip and then to the breast of this "Movie Clip" there are 3 layers, which are about 6-7 long chassis.

    Right now is size of video Clip "1680 x 1050" and it is centered on the stage. But the registration point is in a strange situation. It seems

    as it is biased a bit and to the right.

    I was wondering if there was a way to change the point of alignment in the same way as when you create the symbol (* that is when it shows you the )

    points of type "grid" which you click on one of them and it becomes its registration point)? I read about how you can change the registration Point of

    by clicking on the Clip and then clicking on Edit > Edit Selected/symbol/In_Place. But when I try that it's really hard to get where I want it to be...

    What I want is the upper-left corner of the symbol for the registration Point, which is the top-left corner is "0,0"

    Anyway I can do without having to "Hands-free" move image to the Point of alignment... ?

    Any ideas/suggestions would be greatly appreciated!

    Thanks in advance,

    Matt

    You can always create another movieclip that you (select the mc and choose create MovieClip) and when you specify the upper left corner to be the alignment point.

  • Insert a symbol or character stops working after one use, which requires re - start.

    When you write emails I find that I cannot use the character/insert symbol function once. If I want to use again in the same or another e-mail, I can only do so after re-start Thunderbird (not the computer) I use Windows XP Home Edition

    I have no problem, I suggest that you try to restart with the modules disabled in the Help menu and see if, maybe, the problem is caused by an add-on or theme.

Maybe you are looking for