Remove symbol or stop points?

Hello!
I am currently doing game design at university and Have recently started looking at action script 3. I am not struggling too much and can usually find the answer to what I am looking for but this really has me stumped. I want to add an item to a game I am making so that when it is touched it gives some points and disappears. We have been taught to do this (so far) with hitTestObject and I am having an issue where I can get the symbol of the item to disappear but it I stay in the position I keep gaining points. I have tried looking this up but I am not finding anything that works. So any help would be greatly appreciated as I feel like throwing this laptop out of a window right now
This is what I have for my 'coin' right now, please excuse anything crazy as I am only just learning action script and probably have something crazy in there
// if character touches coin
if (thief_mc.hitTestObject(coin_mc)){
if(stage.contains(coin_mc))
removeChild(coin_mc);
// increase points by 5
score += 5;
score_txt.text=String(score);
Is there a way to stop at 5 points for the symbol or to remove it to stop any other points being gained?

something else is causing your points to increase.  use a trace() function to confirm:
// if character touches coin
if (thief_mc.hitTestObject(coin_mc)){
if(stage.contains(coin_mc))
removeChild(coin_mc);
// increase points by 5
trace("coin_mc hit");
score += 5;
score_txt.text=String(score);
Is there a way to stop at 5 points for the symbol or to remove it to stop any other points being gained?

Similar Messages

  • How do I make a final stop point?

    My half hour video publishes at over one hour.  I think it is because cannot remove excess blank time at end of the timeline. How do I make a stop point?  (The clip tool doesn't work at the end.)

    I tried a couple of case combinations, and this one seems the most solid.  Still, the while loop is not passing information.
    Attachments:
    Saveas.vi ‏27 KB

  • When installing itunes 10.7 my computer gets all the way to verifying install and then removing applications and stops.  I get a message that says "unable to complete - there is a file missing.  I tunes has not be completed.  See your package dealer

    I am trying to install iTunes 10.7.  The installation gets all the way to the end and says "removing application" then stops and gives me an error message that states there is a missing file and it cannot complete the configuration.  Please contact my support or package dealer."
    Confused - my old itunes worked fine - haven't removed any programs, etc.,
    Help

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Adding stop points; complete newbie question

    I like to download lectures from the internet. they come in as one long file. If I take them into Garageband can I add stop points every 10 minutes or so? I want to be able to make a CD with those stop points so it is easier to go back and forth to different points in the lecture.
    Richard

    you can add markers by showing the podcast track, then when you burn it to CD with GB you'll be able to jump to the different points.
    (for more info search for "marker" in GB's help")

  • Ken Burns start and stop points

    In iMovie, when using the Ken Burns effect how can I set the start and stop points to be the same? I don't want to just use "Crop" because my understanding is that using the Ken Burns effect will result in a clearer still photo.

    The renderer that is used when the Ken Burns effect is on does give a clearer still photo when converted to video. On an older version of iMovie I could set the startpoint and then use a key-sequence that was a shortcut to set the endpoint to be the same as the startpoint. I was hoping there was a similar feature with the newer version of iMovie. Then I wouldn't have to adjust the start and stop rectangles for a 100 photos.

  • Remove package from Distribution Point

    I have been fighting with an OS deployment for the last day. The log was showing it was unable to find the package p0100001 which was my boot image. I eventually got it working as I failed to configure my boundary correctly. But it got me wondering...
    In SCCM 2007, it was pretty straight forward on how to remove packages from distribution points. But I still can't figure out how to remove a package, specifically a boot image, from a DP. I can view the distribution in the monitoring section and see the
    package successfully deployed, but what if I wanted to remove that boot image from the DP? How is this done. I'm sure it's staring me in the face, but I'm missing it. Thanks!

    I realize this is an old post, but I am dealing with the same issue regarding the removal of deployment package contents from Distribution Points.  After removing a Distribution Point from the Contents Locations tab on one of my Deployment Packages,
    how long does it take for the deployment package to be removed from the distribution point.  I have removed a large deployment package from a distribution point, but am not seeing any increase in the available free space.
    Any help would be appreciated.
    Muskie
    Muskie

  • Previewing edits and start/stop points

    OK, so I'm still new to this program (I've worked with ProTools and Cakewalk, but this is a bit different), so please bear with me. I'm trying to sample and adjust the different plugins for a track, but I'm running into trouble on two different fronts, thus two different questions:
    1. Is there any way for me to preview any adjustments I make to the plugins before I implement them into the automation? That way, if I feel like something is wrong, I can simply re-adjust without having to rewrite the automation?
    2. How do I select specific starting and stopping points within the track while editing and doing automation? As in, when I press stop twice, it goes back to a specific point in the song (as opposed to the beginning).

    Hey Onigami,
    we talked about last week here.
    Why don't you run the plug-ins on several busses and do a volume automation on the bus?
    2. when you see the (yellow line - volume) (press V on seleted track) click on the line with the cursor to add points (dots) then drag them.
    Press the loop tool or simply press and drag with the mouse up in the measure bars numbers (light green line) and it loop over the selection.
    to resume from the beginning press return, if you don't have the punch in or loop engaged (both green) when you press the space bar twice it should resume from where it stoped, if any of these are on it allways start from the selected point.
    Best regards,
    Jorge

  • Can we customize ADF Train flow to remove a Train stop on some condition?

    Hi,
      Can we customize ADF Train Flow using customization frame work and remove one train stop using some condition?
    Thanks
    Abhilash

    Read Frank's article http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html
    Timo

  • Setting Stop Points in Javascript - JDev 10.1.3EA

    I'm working on an AJAX project that I'm porting into JDev. I've got several utility javascript files that do all the 'heavy lifting' for me, but I'm having problems with Jdev not seeing the libraries. For example, if I set a break point in any of the scripts, I get the message "Unable to set breakpoint (...\login.js 6), unable to resolve Java package." At run time one javascript calls another one, but Firefox reports that it can't resolve the reference. All my javascripts are saved into the same folder in the project, right alongside the main html page and are visible in the Applications Navigator.
    So, I have a few questions:
    1. Does JDev not support stop points in javascripts?
    2. Is there something special I need to do to ensure that different javascripts see each other inside the same application?
    3. Is there a handy-dandy how-to that I haven't come across that deals with this?
    Thanks!

    Thanks, Frank - I have checked, and that makes sense, as the sample bundle (the one where the editor doesn't work properly) has different versions of the tag libs in the project.
    WOW - is this the first semi-official announcement of the impending 10.1.3 release? shiver-me-timbers!

  • How To Remove '-' symbol for currency in obiee11g

    Hi,
    I am getting currency data like this -$31,000.0 how can you remove '-' symbol.
    Thanks,
    Ani

    Using a mathematical function to manipulate the value formatting of a measure is purely http://goo.gl/U9O86
    Complete disregard for the impact on derived calculations, aggregations etc. Sweet.

  • Can a Lightroom adjustment brush draw a straight line by clicking the start and stop points?

    Can a Lightroom adjustment brush draw a straight line by clicking the start and stop points?

    studioMac wrote:
    I'm trying to selectively adust areas of an image in Lighroom. eg: a window frame in an architectural photo, and so being able to make straight lines with the adjustment brush would be very useful.
    I agree it would be useful. It's something that's been asked for. The best thing is to keep requesting at the Lightroom feature request forum

  • Charge symbol with arrow pointing to iTunes symbol appears on iPhone 4 screen after updating.  What does this mean?

    What do these symbols mean on iPhone 4 screen after updating
    Charge symbol with arrow pointing to iTunes symbol?...

    If you do not have a computer with iTunes running on it, then make an Apple Genius appointment at your nearest Apple Store, or Authorized Apple Support center. If you do not have one of those near by, a friend with iTunes installed.

  • Multicamera Editing in CS4: Start / Stop Points Lost

    I'm working on a larger project. I'm using multicamera switching in my sequences.
    When I set a start and end point in my sequence, and then make a change in the Multi-Camera Monitor Window, the start/stop points are lost, and I have to find them again. This is extremely irritating, especially when the the project is in an advanced stage.
    What was Adobe thinking in designing this behaviour, and what can I do about it?

    I suppose for now, I'll just change the camera in the clip's context menu, but you'd think there'd be a more mature way to handle this.

  • Impossible removal of phantom mount points in /Volumes

    Hi all,
    I am experiencing a problem for which I can't find a solution (of course I wouldn't ask if not so…). I am using both a Macbook Intel and an Imac Intel, with virtual linux machines on both through parallels desktop. I am sharing large datasets on a fat32 disk that I use either natively on the mac or virtually inside the VM on both the Macbook or the iMac. My problem is that in the /Volumes folder (of both computers) the mount points do not disappear when the hard drive is ejected. As it is a My_Passport from WD, mounts points accumulates as /Volumes/My_Passport 1, /Volumes/My_Passport 2 and so on. The problem is that I use some scripts that expect the HD to have a specific name.
    I have tried all solutions to remove these "phantom" mount points, disktool, diskutil on the command line using the different options, but nothing actually remove these (of course I can modify my scripts to deal with this but it is quite not an elegant solution).
    Does anyone have an idea on how to fix this ?
    Great thanks,
    Eric

    I am having the same problem with two external drives that are both formatted Mac OS Extended (Journaled) (HFS Plus). Is there nobody that knows how to get rid of these phantom mounts?
    OrangeKay, do you have any suggestions for solving this? In my case, I am using rsync to sync the data on one drive to the other drive, but have to keep changing the names of the drives to account for the phantom mounts, just to back up my data.
    Any suggestions at all are appreciated.

  • How to remove a MovieClip symbol and stop it?

    I manually create a movieclip symbol and given instance name "Ball" on stage (not new MovieClip in AS), and it contained 20 frames animation, but after when I click a button to remove it "removeChild(Ball);", I don't know why it still running? although I can add a "stop()" code on 20 frame to stop it, but I don't think that is a good solution.
    I try to remove its Event.ENTER_FRAME, but I don't know how to do it? because I don't know its event function name.
    Could anyone explain it?

    I believe that in order to fully destroy a MovieClip (and allow it to be garbage collected) there must be no references to it, and it can't be doing anything.
    Here's what I tried:
    mcBall.stop();
    removeChild(mcBall);
    mcBall = null;
    I believe that destroyed the MovieClip. Can anyone else confirm this?
    Michael

Maybe you are looking for

  • Invalid financial transaction of derived commitment item SALESREVENUE

    Dear Sir, I am Facing error while using T-code : VF02 (ReleasetoAccounting). Invalid financial transaction of derived commitment item SALESREVENUE Message no. FMBS105 Diagnosis The derivation strategy (environment)  derives an invalid account assignm

  • Migration related query

    A migration of the Development server has happened . It has been a homogeneous migration .The hostname has changed. Due to the change in the hostname ,the system does not  recognize the current system as the original system in which developments have

  • RMAN: copy production db on server 1 to developement db on server 2

    Hi, I am new to RMAN. Currently have installed Oracle 10.2.0.3 Enterprise Edition. Can anyone shed some thoughts on how I copy a backup using RMAN in the below case where FROM production_db on server01 to developement_db on server02 Many thanks,

  • Question about Schemas

    Hi, I have my application setup with all my queries coming from one schema. If I want to query a table from a different schema in my application, what is the syntax to do this? Should it be something like Select "TABLE"."ID" From "SCHEMA2"."TABLE" Wh

  • HT201401 update and screen image issue

    The screen only shows a negative image all the time. Like a photo negative. I also cannot update my iOs (ver 4.2.10), both my laptop and desktop timeout when trying to update iTunes and it fails.My internet connection is fine with my phone and all my