Try to make the health bar

I'm doing a health bar. I'm trying to make sure when your health goes down, the bar moves.


Health = 100;

HealthBar.TheBar._xscale = the health;

function updateHealthBar() {}
HealthBar.TheBar._xscale = the health;
}

So far, this is what he does. I made a button, and when you press it it takes your health 5.

How can I do one side move to the left instead of them, both moving to the Middle?

Position the wicker and its alignment is along its left edge.

Tags: Adobe Animate

Similar Questions

  • Make the health bar down (AS2)

    Well, after some work and a lot of mistakes, so I made a health bar for my game. (It is the Actionscript 2)

    Basically, the code is the file .as my main character, there is
    var maxHealth: number = 100;
    health of the var: number = 100;

    and further down the line...
    _root.healthBar._width = (health/maxHealth) * 200;

    ~~~~~~~~

    So, when I change the number of health lower var, the health bar drops lower. Sweet! It works!

    Now, just wondering if any of you guys could help me code so an enemy can inflict damage on the main character.
    I have tried several codes, but they all failed.

    If (this.hitTest (_root. Monster))
    {

    }

    That would put the parentheses?

    Thank you

    :

    If (this.hitTest (_root. Monster))
    {
    This.Health-= 10;  for 10 damage

    and always make sure that health does not go below 0 and when it reaches 0, you take action
    }

  • I need to make the bookmarks bar visible when I start firefox

    I use the mozilla.cfg file

    defaultPref ("dom.disable_window_open_feature.directories", true);
    defaultPref ("dom.disable_window_open_feature.personalbar", true);

    I need something like this to use to make the bookmarks bar when I run firefox

    It is one of the persistent settings that are stored in the file localstore.rdf.

  • Error "classic asp not installed" when I try to make the purchase on a Web site.

    Original title: I am asp error whenever I try to make the purchase on the website, any help on this

    classic ASP not installed

    Communicate with those who are responsible for the Web site.  There is nothing wrong with your machine, it's their server which has problems and is perhaps misconfigured.

    You can't solve their website of your machine.

    Steve

  • I live in the Portugal and I try to make the purchase of this product, my country appears unavailable and an error occurs

    I live in the Portugal and I try to make the purchase of this product, my country appear unavailable and an error occurs and can not make the purchase. Help me please.

    Places http://www.adobe.com/content/dam/Adobe/en/products/creativecloud/cc/pdfs/cc-availability-m atrix.pdf

    -Adobe resellers http://adobedealreg.force.com/PartnerSearch?lang=en

  • Hi I have Lightroom 5.7.1 and try to make the panorama.  Photo/Edit in watch upward but somehow "Merge to Panorama in Photoshop" is grayed out.  How can I make it work?  How can I make panorama to 5.7.1?

    Hi I have Lightroom 5.7.1 and try to make the panorama.  Photo/Edit in watch upward but somehow "Merge to Panorama in Photoshop" is grayed out.  How can I make it work?  How can I make panorama to 5.7.1?  Can anyone help?

    Seriously Teddy5555, this isn't a problem with Lightroom.  If PhotoShop is not installed on your computer, then you cannot directly photos to edit in PhotoShop, nor can you merge to Panorama in PhotoShop.  If it is not installed, you must install it to make it work.

    6 LR and LR CC 2015 have the ability to merge with a Panorama in LR itself as shown below, but I don't remember if it was available in LR 5.

  • How to make the progress bar display in the icon in the taskbar for WIN 7?

    How to make the progress bar display in the icon in the taskbar for WIN 7? I see Eclipse Helios can show the loading progress bar in the icon in the taskbar of WINDOWS 7 at startup.

    Is not the feature that provides JavaFX, you must write a native connection called technology such as JNI to make specific Windows API call for updating the icon in the taskbar for the application.

    Maybe you could go through the Eclipse source code to see how Eclipse and see if you can make use of the same mechanism in your application.

    More tips on how you can implement this are outside my area of expertise.

  • How can I make the task bar and the opaque address bar?

    The address bar and the taskbar are translucent IE I can see the wallpaper through them, while the rest of the window is opaque.

    I would like to contribute to make the entire opaque window.  Windows 7 Home Premium
    Thank you
    Robert

    Hi Robert,.

    Thanks for posting your query in the Microsoft community!

    I understand that you do not want taskbar and the translucent address bar. I will try to help you with this question.

    Disabling the translucent effect in Windows 7 is very simple:

    a. right click on the desktop

    b. click on customize

    c. under ' Basic and high contrast themes, click on "Windows 7 Basic.

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

    We can't wait to hear back on your part.

  • How to make the address bar behaving like search bar? I mean SMART search, as it implemented in Chrome (very comfortable for users).

    For example when I type a word in the search bar, it begins to give search engine suggestions, so don't HAVE TO TYPE THE ENTIRE SEARCH PHRASE!
    The same behavior is in the address bar of Google Chrome. So in Chrome address bar and search bar are combined into one that is very comfortable for users.
    In Firefox, you have here two different bars, which makes no sense. I used Chrome before and usually by type of force of habit in the address bar to search for something and have to type the whole expression there to begin the search. It is very stupid and using the address bar to the fruitless search.
    Screenshots attached.
    So, do we not have any add-on or option to merge or combine the bars or to implement smart search in the address bar?
    Thank you.

    You can look at extensions such as these:

  • Y at - it an addon that will make the tab bar to disappear?

    I have multiple windows and tabs not. Does anyone have an addon that hides the tab bar? I am not upgrading my version of Firefox if I can not hide the tabs as well as block the automatic Checker addon that is sent on my system if I try to go above version 20.0.1 is there a way to disable or remove that as well?

    try to remove the user.js file - normally should not be in your profile folder at all if you did not create yourself.

  • How to make the search bar of the report interactive, aligned to the right?

    Hi all
    I need to make the search report interactive to be on the right side bar. How can I do this? any idea?
    Please note that I use the Oracle XE11.2 database

    Best regards...
    Hussam.

    Hossam,
    If you use apex 4.2... change your page in the css section, place the code in the Inline text box.

  • Try to make the simple disk image layer after doing the double layer image

    Hi all

    I wonder if you can help me.

    I just made an image of DVD double layer of a project and he created a 7 GB file. Now, I would try a simple disc image layer 4.7 GB, something I did with an earlier version of this project, resulting a watchable drive on a smaller TV.

    After 7 GB image, still don't make the 4.7 GB version but I don't understand why.

    Martyn

    Check these 2 things:

    Right click on your 'active' movie and choose "return to the original. This still allows transcode again at a rate less than fit on the smaller disk. Yet fortunately keeps your first version until you tell her to not to do so.

    The tab generate, have you changed the size of the disk (under 'disc info')?

  • The address bar disappears when the cursor is in the middle or the bottom of the page. How can I make the address bar to stay constantly?

    When you open mozilla, when the cursor is not at the top of the page, I do not see:
    (1) the address bar
    (2) front and rear buttons
    (3) office toolbar

    So, in short i can only see the adress bar when i move the cursor to the top of the page. Desktop toolbar doesn't seem at all when the mozilla internet page is open. How can i solve this?
    

    See also:

    When you are in full screen view, move the mouse to the top of the screen to facilitate the bar bar appear Navigation and tab.

    You can use one of them to exit full screen:

    • Click the expand (in the top right Navigation bar) button to exit full screen
    • Right click on an empty space on a toolbar and select "exit full screen".
    • Press the F11 key
  • How to make the search bar works like this.

    The search bar, just to the right of the address bar, does not start a search when I enter a search term and press the magnifying glass symbol or press ENTER. I am able to select a search engine.

    I have seen the other question that has been locked and pointed to this topic. Firefox reset should solve this problem. It takes about 10 seconds and will remove the modules and customizations that could cause problems. It will save all of your personal information. You can learn more about here - Refresh Firefox – reset settings and Add-ons.

  • How to make the scroll bar on the sides of the screens?

    System to win 8 op.

    on pages how the wider scroll bar.  I know I could use a lot of things but I would use it on occasion.  default value is way too small as 'micro' - app does all the rest.

    Hello

    Thanks for posting the question in the Microsoft Community!

    You want to be wider, the scroll bar.

    Unfortunately, the scroll bar may not be wider.

    If you need any help or if you encounter problems with Windows in the future, let us know and we would be happy to help you.

Maybe you are looking for

  • How can I make calculations in swift

    I'm doing a quadratic Solver. As shown in the photo, I value a, b, c. I want to use the formula x = (- b + - √(b^2-4ac)) / 2 has to solve. I wish that the result will be deployed on x 1 and x 2. What should I write in the code? My codes are below imp

  • C850 satellite will not start - black screen with mouse cursor while

    the screen while starting up is black with the cursor display white mouse - but won't start the computer is only 3 months with windows 8 Please help me Thank you

  • Help text Configuration file reading

    Need help... I try to do a VI that will read a simple text configuration file.  The file will have entries like: URL = 192.168.0.1 Port = 9000 What I want to do is read the line and 'analyze' in 2 channels.  Then, based on the content of the first st

  • Question about Windows MultiPoint Server with VNC

    Hello I work in a research laboratory and our scientists are running a large number of simulations with MATLAB image processing.  What we all buy a computer powerful user and set up so that, up to 3-4 users remote access to the computer at any time a

  • How can I register the total number of files on a hard drive?

    How can I register the total number of files on a hard drive? I have Windows XP Home Edition and Windows XP Professional Original title: show the contents of a disc