make a change of variable if a score_var is a multiple of 10?

So I want this * bonus * to move on the screen if the score is a multiple of 500.

bonus_mc.onEnterFrame = function() {}

If {(score_var)

This bonus_speed of ._x +=;

If (this ._x > Stage.width)

{

This ._y = random(Stage.height/3);

This ._x = - 20;

}

}

}

Use the modulo operator to see if a value is a multiple of a number.  If the result is 0, you are a multiple of the value.  Because you specified two different values, your choice is...

If (score_var % 10 == 0) {}

or

If (score_var % 500 == 0) {}

And since a score_var 0 would also produce a result 0, if you want not included, then include her in conditional as well.

Tags: Adobe Animate

Similar Questions

  • Pseudo code to change a variable when my score is a multiple of 5?

    I have a game where I need to increase the difficulty when the score is a multiple of 5, nobody don't think they could provide me a pseudo-device code that could help out me with this?

    I tried many things and it did not work perfeclty so far.

    If you want to see if something is a multiple of 5, use the modulo operator: % module returns the remainder after the Division of one number by another

    If (score % 5 == 0) {}

    the score is a multiple of 5

    }

  • Change a variable to a button

    I need to change un variable by clicking on a button

    t He problem , it's that when I go in the first frame, I declared a var _global

    _Global.conteudo = null;

    In the second frame:

    This equals a _global to:

    _Global.conteudo = "enterprise.swf";

    But when I click on a button, I change my var _global, for example:

    on (release) {}

    _Global.conteudo = "My variable declared";

    }


    You don't need to have _global, but you can if you wish.  Still, you should get out of place the code on the objects and start now in the timeline panel.  This makes maintaining the scope of variables and it makes your code where it is easier to find.

    You have a problem, get a button to change the value of your variable _global?

  • Possible to change the variable cpQuizInfoPassFail through advanced actions?

    Is it possible to change the variable cpQuizInfoPassFail through advanced actions? I do not see this or the other quizzing variable when I try to create an advanced action and change by entitlement or expression. Let me explain what I want to accomplish, I ask the wrong question. I have a training project, with that I need to include a post test. I don't really like the captivate quizzes. I want the post-test to play as a ride on jeopady where the user chooses issues category and gets points if the user answers correctly. For this I must ask questions on a game board and (from what I can fig) you cannot have multiple questions on the same page. I'm building the quiz with my own custom variables and coded so that the program jumps to a page of the certificate if the user gets more than 84 points. THA all works very well. But I have to be able to tell the database that the program will connect with the user has passed the quiz. I thought I could do this if I assign the value 1 to the variable cpQuizInfoPassFail. Is there a way to do this? Thanks in advance for any help,

    Doug Jackson

    Hi Doug,.

    I don't see the version you are using. Each interactive object can be marked, has a report following properties in the control panel (if you use CP5 or CP5.5) or a tab in the Properties dialog box reports, if you use a different version. You must add a score (default value is normally 1 point) and make sure you add it to the total score.

    If you want to make me a glance, post your file on acrobat.com (free, use your Adobe ID), share and publish. You will have a link that you can copy into a private message to me.

    Lilybiri

  • Why am I being asked to do this?  I have not changed anything.  "Update of your Apple ID, you must verify your identity to make this change." Answer your security questions to continue. "

    Why am I being asked to do this?  I have not changed anything.

    "Update of your Apple ID, you must verify your identity to make this change." Answer your security questions to continue. "

    What do you do when you are prompted to do so? What is a pop-up? The popup has a link on which you are supposed to click, or it actually lists your security questions? Need more information.

    See you soon,.

    GB

  • change the variables in a smart camera by a remote computer

    Hello

    I have a smart camera NI1722 and I want to change some variables inside the camera by a computer which is connected to the camera.

    Is it possible to change the variables inside the camera from a computer outside? On the computer we program with CVI. We have a RS232 and TCP/IP connection.

    Anybody can help us?

    Thank you

    Oliver

    Hi Oliver,.

    You use a LabVIEW or Vision Builder AI program the smart camera?

    There are several ways to Exchange data between a smart camera and CVI on the host computer.

    The easiest way is probably to use shared variables.

    If you use LabVIEW to program the smart camera, the following article explains how to create and deploy shared on the target variables.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4679

    If you use Vision Builder AI, first connect to the smart camera, then select Tools > Variable Manager...

    Select the tag System Variables, and then click Add to create the variable for the data you want to share. Be sure to select publish it on the network box.

    You can set the value of these variables in Vision Builder, using the step set the Variable, located in the tools palette.

    And a lot of steps allow for use directly in their configuration page, clicking the arrow to the bottom of some digital controls.

    Now, on the side of the CVI, this example shows how to connect, read and write variables that you created on the smart camera.

    https://decibel.NI.com/content/docs/doc-3806

    I hope this helps.

    Best regards

    -Christophe

  • Is WDS server2008R2 - possible to make incremental changes to a custom image?

    I'm in a test environment to determine if we are able to deploy an image of windows 7, which has been customized to include the required professional applications.

    My question is; is there a microsoft (WDS/MDT/other?) solution that allows me to make incremental changes to this custom image? for example if I need to update our payroll software, I will perform the update on a PC reference, download the image to, say, the WDS server and then I'll want to spread this change to users. In order to make this small change, I have to perform a complete reinstallation of the image personalized to each PC or is there a solution that allows me to update just the gradual change?

    Thamks.

    Hello

    The question you posted would be better suited in the TechNet Forums. I recommend you post your question in the TechNet Forums using the link below.

     
    You can refer to the links below for more information.
     
    Using the RIPrep Images
     
     
    A case for one approach multilayer Windows desktop deployment
     
     
    Deploy Windows using Windows Deployment Services
     
     
     
    I hope this helps.
  • Using sharepoint to update the Web page, whenever I make a change multiple widgets.

    Original title: sharepoint widget multiplies

    Beginner with very little computer training.

    using sharepoint to update the company's Web site.
    I inserted a youtube widget and a twitter widget in Web content parts respective (using the html editor) and everything looked and worked well.
    the next time that I edited the page (I've changed the dimensions of one of the widgets), I saved and discovered that, instead of a twitter monitor, I've now had 2... and vice versa with the yourtube. whenever I make a change, the monitors are multiplying.

    Hello

    (1) operating system do you work?

    (2) do you use Microsoft Sharepoint?

    If you use Microsoft Sharepoint then I would suggest that post you the question in the Microsoft Technet for Sharepoint forum. Consult the following link:

    http://social.technet.Microsoft.com/forums/en-us/category/SharePoint2010, sharepoint

  • My xbox account is linked to an account non-existent live windows, how to make a change to an existing one?

    My xbox account is linked to an account non-existent live windows, how to make a change to an existing one?

    Hello

    You will need to contact Xbox support http://support.xbox.com/en-us/pages/contact-us.aspx

  • Trunk / normal boot - access denied message: may have to open a session using the admin account to make specified changes

    I went into safe mode to try to resolve a problem that is "slow". When I tried to goback to normal startup, I got an access denied message. "... May have to login using the admin account to make specified changes." I am the only user of the computer and administer and logged as soon as I turn on count it. What can I do now?

    Is this the message you see:

    "An access denied error was returned while attempting to change a service. You may need to log on using an administrator account to perform the changes specified"

    If so, I bet you have a HP printer, because there is an HP PML driver that produces this effect of nuisance. It is only a nuisance and you should still be able to make your changes of msconfig, and they should stick. However, if she is really bugging you, you can watch this:

    http://www.pchell.com/support/msconfig_access_denied_error.shtml

  • Tried to restore to an earlier date, but whenever the computer goes through the process, but ends by saying that he could not make the changes. My system is XP Professional.

    McAfee, updated yesterday, Saturday, and now I have problems. Tried to restore to an earlier date, but whenever the computer goes through the process, but ends by saying that he could not make the changes. My system is XP Professional.

    Hello
    Have you done that you are connected under an administrator account?

  • one of my pc has placed on the bios supervisor password. now I need to use the bios settings to make some changes

    original title: supervisor password

    one of my pc has placed on the bios supervisor password. now I need to use the bios settings to make some changes, and I don't remember the password. What can I do to fix this?

    any practical advice will be much appreciated.

    Hello

    Check with support from the manufacturer of your system (manufacturer of motherboard for customized systems)
    or a real computer store (that makes its own domestic service).

    The Microsoft Community cannot help with password lost or forgotten by Microsoft Policy.

    Keep secure passwords - Microsoft strategy on move the passwords
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • What does that mean? "the program wants to make a change to your computer".

    What does it mean when a window opens saying that something wants to make a change to your computer?  This means that something wants to set a cookie?

    This feature was not available in Windows XP, its designed for protection, you must explicitly enable it to make changes (add entries), otherwise the program will not install correctly.

    When you install a program, it updates (written) entered in the win7 registry and installs the files (written) at various points in the victory.

    By installing a program you "asked" so that it can be installed, if you see this warning when you do not install a program, then you know that you should be wary of what you did to trigger such a warning

  • I can't make any changes on the WOOD of Lenovo E530C boot order.

    I have this laptop here as I want to get off the machine, I can not set the boot order.
    I can't get into the BIOS but I can't make any changes in the boot order, upgrading the BIOS is the current.

    How can I solve the problem? Please help.

    Hi Mehlo,

    Thanks for posting your query on the Microsoft Community.

    I'm sorry to inform you that you are not the right forum to get answer to your query. That you are facing problem with set BIOS settings that require a specialist equipment or their technical support technicians. Here are a few discussions with the manufacturer of your computer that deals with the same issue that challenge you. Please check and see if it helps.

    Change the boot order in the BIOS

    ThinkPad E530 will not boot from the CD

    If the problem persists, try to contact your computer support center and see what they suggest. To contact the Lenovo Support, you can consult this link.

    Hope that the information provided is useful. Let us know if you have any concerns related to Windows. We will be more than happy to help you.

    Kind regards

  • When an image is in several catalogs and I make a change to it in a cat it is not recognized by other

    Now that I'm on a Mac, it seems that when an image is in several catalogs and I make a change to it in a cat it is not recognized by the other.  Everything was stored in an attached file on the PC. The Mac version does not seem to do that. Is there a work around for this? Last thing I want to do, is work on an image in LR and find all of this work is to specific catalog.

    Check the option in the settings dialog box of the LR catalog for "automatic writing changes to XMP. This way all of your actual changes are written in an XMP Sidecar file and can be read by other catalogs, you could use.

    But ultimately you do yourself a favor by using more than one catalog. The whole point behind LR is to have all the images in one catalog on your main computer. Of course, it is find to use one second, another catalog on another computer, such as a laptop, you take on the twigs and then merge this another catalog in your main catalog when you return from the shoot.

    Import of catalog "Julieanne Kost's Blog

    Export a catalog | Adobe Photoshop Lightroom CC tutorials

    And the series by Julieanne Kost.

    Julieanne Kost, Director Digital Imaging Evangelist, Adobe Systems, Inc.

Maybe you are looking for

  • iPhone with iOS 9.3.1 not sync with iCal/iCloud

    My iPhone (updated with iOS 9.3.1) is more iCal events synchronization is entered through iCloud.com / #calendar. I did everything - the phone reboots, check the Apple ID, etc., etc., nothing helped. Help!

  • Can iPhone auto-install latest iOS?

    Hello, I'm a dinosaur and I have the iPhone 4S with 6.1.3 In I downloaded iOS 8.4.1 but not already installed My iPhone when I sleep auto can install iOS 8.4.1 in itself or not? If so, how can I prevent it? Thank you

  • OR VISA with Tektronix TDS7404

    Hello world I have problem connecting to the oscilloscope Tektronix TDS7404 via Ethernet of LabView. The driver is installed, but when I open the VI example came with the driver, I need the VISA name. If I leave the field blank, I get an error: 10738

  • Increase the space for more hot graphics card

    I asked a few questions about this... but I was not specific enough. My computer: HP Pavilion Elite m9060n; ZOTAC GeForce GTS250 1 GB graphics card. I made the space for this double-card slot; and upgraded POWER of Antec 650W PSU.  When mounted, the

  • How to install XP on a 2nd drive hard sada 1 TB

    1 Sasa HD has XP and I want to install XP on 2nd sada HD but when I go to install I don't see any way to change the discs. Need help.