An enemy following me around the screen, but not too fast

Hi, I'm building apps to teach English but through games.

I want an enemy BUG following me around but NOT TOO soon as I have small children of 5 years using it,

It would be something like the details of my HERO character and to send the BUG.

I use the POINT at the moment to send my HERO to where the mouse clicks.

I could send the BUG there as well but using less x and y increments.

It would be too heavy for the processor - too much going on with the music as well?

still, do not remove:

var speed: Number =. 99;

public void onEnterFrame(event:Event):void {}

var xDistance:Number = clickPoint.x - this.hero.x;

var yDistance:Number = clickPoint.y - this.hero.y;

If (Math.abs (xDistance) > 10) {}

var angle: Number = Math.atan2 (yDistance, xDistance);

This.Hero.x += v * Math.cos (angle);

This.Hero.y += v * Math.sin (angle);

} else {}

this.hero.gotoAndPlay ("static");

}

enemy1.x = speed * enemy1.x +(1-speed) * hero.x;

enemy1.y = speed * enemy1.y +(1-speed) * hero.y;

If {(clickPoint.x>=hero.x)}

this.hero.gotoAndPlay ("right");

trace (Math.ABS (xDistance));

}

If {(this.hero.x>=clickPoint.x)}

this.hero.gotoAndPlay ("left");

trace (Math.ABS (xDistance));

}

}

Tags: Adobe Animate

Similar Questions

  • How to view the fields on the screen but not printable?

    I have a text and the field I want to display on the screen but not print.  I chose the presence as 'Visible (display only)', but when I print the fields also prints.  No idea how I can make the fields in my form the two visible on the screen but unprintable.

    Try saving the document in dynamic PDF

  • Site Web HTML - jumping around the screen, have not seen this before.

    I just uploaded a site.

    www.surveyplan.com.au. It consists of base tables that are jumping around when you click on the links. I put all the tables to either 100% or by the size in pixels and in any event is not yet solve the problem. Seems to be worse on a small screen... what a pain in the *!

    Any help appreciated.

    Indeed, there is a problem with the models of DW and IE, the entire page is redesigned which causes some flickering (Firefox should not have this problem with your pages). There is a kind of solution for this. It is not a beautiful, but it can work for you.

    You can add a few metatags just below the other in the head meta tag:



    It results in a smooth transition and will reduce the flickering. I searched a few months there are better solutions but couldn't find them, so I always use these

    Friend

  • How can I activate the Ctrl alt del button work to log in to the screen, but not to ask him

    My old computer on the login screen it showed users or you could press CTRL alt delete and set username and password, how I set up like that and not have it is necessary to to do,.

    Hello

    Try the solution from the link below,

    How to enable or disable the CTRL + ALT + DELETE sequence for logging on Windows XP and Windows Vista, Windows 7

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

    If the fix the does not help, try the steps manually.

  • Is it possible to have the timeout of the screen, but do not go to sleep?

    Is it possible to have the timeout of the screen, but not go into standby mode, so you can just tap the screen to activate again and don't have to press the power button / stop?

    Connected to rhe adapter there is an option to demand-> in development-> stay active, so the screen is not disable timer, it gets only dimm.

  • Satellite Pro M30: rim around the screen is broken

    I have a problem with the screen on my M30.

    He began to blur and sometimes it goes black, but turns on instantly.

    The black border around the screen is broken in the lower left corner, it never really seemed to be able to follow the screen correctly, and there are some time (a month or two) he snapped.

    It seems to me that there could be a loose or faulty connection somewhere. The problem often appears when I try to adjust the screen or move the computer. Someone has an idea of what might work?

    Hello

    Looks like this isn't something "fix-it-yourself". You should consider contacting an ASP for the fixed machine.
    The LCD mask is cosmetic and could be left off-, but the question of the LCD (screen goes fuzzy and come back) looks like to a defective part (LCD, wiring, PCB) or a bad connection on this path.

    If you still have the warranty - go to an ASP. If this is not the case, ask for a quote.

    BR

    Tom

  • NB100 - mouse cursor flies around the screen

    Hello

    So, I bought the NB100 and noticed that something was not right but stupidly put upward with her for over 2 years. Now he is just really annoying as its happens more frequently and, possibly, gets worse!

    Randomly, the mouse cursor flies around the screen, by clicking at the opening programs and files, etc. The only way to stop it is to turn off the laptop holding down the power button. She also does when I plug in a usb mouse (and disable the touchpad) so I assume that it is not the hardware, but I have reinstalled as the driver...

    Usually, if I turn the laptop on its always crazy but if I start it in safe mode its fine. This made me think I had a virus but I did a scan and nothing shows.

    In addition, I don't think that turn it off by holding the power button down is very good for the system that sometimes, when I try to turn it back on, it doesn't load at all (just a black screen with the cursor).

    Help, please! I would be eternally grateful...

    Thanks in advance, Nadia

    need you pretty much time to fix. My advice is to reinstall Windows from disk image or hard drive recovery. Please, understand me, it's easier and quicker to reinstall rather try to fix it.

  • My pavilion G6 - 1210 SA goes in but the screen is not

    Hello

    I tried. Turn on my g6 last night and it works but the screen is not the fan starts and the lights are normal, I tried to take the battery. Out and adapter and the second fact 30 thing that did not work, I tried without the battery and still nothing at one point it seemed that updated operating system running but the screen does not (windows 7) any help would be great because I have a lot of work to do on my laptop

    Hey AJ2106,

    First of all, I wish you welcome on the HP Forums!

    Like your laptop is by train (heard the noise of the fan and LED is lit), but the screen remains black, I suggest you to watch the following document 'computer won't start (Windows 7, Vista, XP)'. Now, this document you have already done the hard reset so you won't have to do it again once, but the part you want to follow the steps, is symptom: LEDs flow, the fan noise is heard, but the display is black or white.

    Please let me know the results of the troubleshooting steps.

    Looking forward to working with you!

  • I have a unfinished message in "drafts". When I click on "drafts", message shows on the screen but is 'refractory', which means that I cannot work on it or send it. What to do about it

    Windows Mail

    I have a unfinished message in "drafts". When I click on "drafts", message shows on the screen but is 'refractory', which means that I cannot work on it or send it. What

    on this subject - step by step?

    Thank you

    Bogdan

    E-mail address is removed from the privacy *.

    In addition, how to activate cookies? I have accounts at multiple Web sites (like netflix, allrecipes... etc.), and whenever I go I need to sign my username, password...

    I tried to follow the instructions on the Windows online help, but they are useless - I must have a university degree in computer science to be able to follow this high technology

    languauge and navigate a web of Byzantines 'options', a crazy maze that could only be born in the sick minds of these stupid high school dropouts

    artists such as Bill Gates, Steve Jobs (RIP)... and the rest of them.

    If you, my tutor, happens to adore these punks, please disregard my harsh words and just help me.

    Thank you once again!

    I love the "punks", but must take over your computer and learn some things about it to use it properly.

    For cookies, in Internet Explorer go to tools | Internet Options (or control panel |) Internet Options). Privacy and things together in the middle and you can adjust which sites to allow.

    For the issue of Windows Mail, you can have the database corruption so try to compact and repair the database (see www.oehelp.com/WMUTil/), and then see if that helps any.  Try to restart also.  If you still have the problem, then look for the antivirus interference (disable e-mail analysis - see www.oehelp.com/OETips.aspx#3) and then delete your e-mail account, close and reopen WinMail and then add it back back.  Also, instead of using air streams is to use the file | Save as and save the unfinished on the desktop message when you dial the it.

    See if that helps.

    Steve

  • HP Envy 15 "touch screen power LED appears, but the fans does not and the screen does not light

    Hello!

    I'm a student in computer engineering at the University of Waterloo 1A, and I run a very serious problem with my HP Envy 15 "TouchSmart laptop computer running Windows 8.1. It is a problem that just started today, and I'd rather have a first support here before going to see the technical support Office sometimes tomorrow. It has to do with the screen and the fans where the Power LED lights in white, just as when the laptop works properly.

    (I have warranty on the laptop when it was purchased last June, except that if I find that I need to get a replacement, I'll lose all my work, I did on that since I started my semester.) It's so silly of me not to have all my work saved on a backup, because I have an external hard drive. Problem is, I've had too many problems in getting myself organized, I'm not being open-minded as I should, and worse, I'm not a balance between life and work at home.)

    Before I had my MATH 117 conference (Calculus 1 Engineering), I was in a nearby lab where my laptop was open and turned, works correctly. I've had NetBeans IDE running since I wanted to work on the second part of my current assignment of CS 137 (principles of programming). Because it was almost time for my presentation, I closed the laptop by simply moving the screen down on the keyboard, where it goes into mode 'sleep'. (Whenever I flip to the top of the screen, the laptop is supposed to return, and the sliding screen of Windows 8.1 connection will appear.)

    When I took my seat for reading, I wanted to spend a little time to work on my programming assignment. However, after the reversal of the screen to the top, instead of having the login screen appears, I encountered the problem: the power supply light is showing a white light, but I don't hear the fans between the ventilation openings on the left side of the laptop and the screen does not light. I tried to take the power for several seconds and once button at least 10 seconds, except that the power light continues to display on a white light. The Commission of the Wi - Fi light is not displayed.

    Whatever it is, I don't want to take out the battery because I have that on my last laptop, and it's from there that I couldn't turn to the former, a new market. If I leave the Envy laptop battery, it will short-circuit the connections between the battery and the computer, and so several components will FRY. For now, what I do let the laptop is to empty the load on the battery. Then, once I noticed that the power light does not project a white light, or plug in the AC adapter and try turning the laptop on the power button.

    It will take a little while for the circuit drain the load on my battery but...

    Anyway, please would you be kind enough to help me with this problem? I would really appreciate if you can give me several recommendations. Thank you!

    Hello @GregPDesWHP,

    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I read your post on how your laptop is not on, and I'd be happy to help you in this case!

    In order to restore the features of your computer once more, I recommend you follow the steps described in this document on the computer does not (Windows 8). If the problem persists after having exhausted all the steps in this document, I recommend you contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number.

    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps!

    Concerning

  • I tried the clean boot and now the hard drive works simply and screen went black. The mouse still moves around the screen without any outher work keys? That is what it is?

    I tried the clean boot and now the hard drive works simply and screen went black. The mouse still moves around the screen without any outher work keys? That is what it is?

    Hello

    You will need to reverse the clean boot, as it is either incidental compared to
    the real cause of the problem. What, where you try to fix initially using the cleanboot?

    You can access Mode safe? Repeatedly press F8 as you start? If so you can try the configuration - control panel
    The Device Manager - graphics card - Double click on - driver tab - click the driver UPDATE - then
    Right click on the device and UNINSTALL - REBOOT.

    Another method to try to get to the desktop (try in normal Windows Mode without failure) is
    CTRL + ALT + DEL and the processes tab find EXPLORER.exe and COMPLETE the PROCESS on this subject - and then
    on the Applications tab - lower right - new task - type in EXPLORER.exe. Safe mode is reached
    by tapping F8 as you start several times.

    First check this thread in case it is simple and if not to come back to this thread.

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/50247d5e-0ae0-446c-A1bd-11287fd1478a

    Black screen problems are extremely difficult to repair and all patch is usually on a base hit or miss.
    That there is no information on a black screen as it is on a blue screen just adds to the
    Difficulty. Often using a restore point or Startup Repair will have no effect. You can try a
    Google to see the proposed repairs, whom some have worked however these cover a wide
    field efforts.

    Here's a video of one of them.

    http://www.Google.com/search?hl=en&q=black+screen+of+death+Vista&btnG=search&AQ=f&OQ=&AQI=G1

    Here's another fix
    http://blogs.PCMag.com/SecurityWatch/2008/12/the_mysterious_black_screen_of.php

    You have a Vista disk? You can try restoring the system to it. If you don't have the disks your
    system manufacturer will sell them at low prices. Or try in safe mode if you can get there.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    You can create a recovery disc or use someone even version (making the system restore it)
    must be bootable).

    How to create a Vista recovery disk
    http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html

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

    These require the correct Vista discs since you can not start safe mode.

    Try the Startup Repair tool-

    This tells you how to access the System Recovery Options and/or with a Vista disk
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    Try recovery options Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

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

    Here are a few Google searches where many have found different solutions:

    Vista black screen - check that a 1st
    http://www.Google.com/search?hl=en&source=HP&q=Vista+black+screen&AQ=f&OQ=&AQI=G10

    Vista black screen Solution
    http://www.Google.com/search?hl=en&q=Vista+black+screen+solution&AQ=f&OQ=&AQI

    Vista black screen Fix
    http://www.Google.com/search?hl=en&q=Vista+black+screen+fix&AQ=f&OQ=&AQI

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

    If necessary and you can access all ordinary Windows.

    You can try an In-Place Upgrade (hopefully save programs and data) or a repair installation
    (if all goes well, the data records and need to reinstall programs). Don't forget to make a good backup or
    3.

    You can use another DVD that aren't copy protected but you you need to own
    Product key.

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    If nothing works, you can do a repair installation that needs to save the data, but you will
    to reinstall the programs. This also requires correct Vista disks especially for OEM versions. You
    will need to know your product Code.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

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

    Another method that works sometimes: at the command prompt, type of Vista startup disk:
    (type in a single line or copy / paste a line at a time and then press enter - enter a bracket )
    or "BOLD")

    c:

    cd\

    CD c:\Windows\System32\winevt (there is a space between cd and C :)

    Ren LogsOLD Logs (there are spaces between ren and newspapers and Logsold)

    RESTART Windows

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Windows 7, normal use - mouse freezes when you move around the screen

    Hi there I use Win7 since the RC1 of scene and found it rock solid, I'm now running Windows 7 Enterprise. I installed it on a Dell XPS 1710 and had few problems so far. When I start my computer and you move the mouse around the screen, the mouse "hangs" for a second or two, then moves, then crashes again. In even the startup sound I is unstable, as are MP3 when I play those. All these things worked * perfectly * until a lock suddenly toward the top of the computer having been on during a few hours, which was a new event. The computer haddnt overheating but since then this nervousness thing that happened.

    What I tried:

    Selective startup, without the elements of startup and services, without change.
    Search for new drivers for my card (Nvidia 7950GTX) gfx, no change.
    Shut down the computer to turn off this device to save power 'allow' in the option of USB hub root

    None of that helped him. The CPU spikes 16% at most when you the mosue blocking, I have a lot of RAM available. Occurs when I use the touchpad as well and even when I'm not running all programs - oh, I have a Microsoft Intelli Mouse 5 button.

    Hopfully somebody can provide some more ideas for me. Thanks in advance

    Hello

    Please scan your computer of viruses, you can also perform a full scan online.

    Here is the link:

    http://OneCare.live.com/site/en-za/default.htm?mkt=en-za

    Try to clean boot your machine, here is the link:
    http://support.Microsoft.com/kb/929135

    Kind regards
    Jackson.

  • When turned on my laptop, there is a black border around the screen.

    Original title: screen resolution problem

    Hello

    A few weeks ago, I turned on my laptopn and there was a black border around the screen. I managed to change the screen resolution, but my laptop seems to think that I have a dual monitor? And my resolution is still not like it was before. Obviously this isn't a huge problem, but it's annoying to have to go and change it regularly.

    In addition, given that this has started to happen, I noticed that when I turn on my laptopn, instead of the usual Acer / Windows startup screen, the screen is all black, until the login screen appears. I don't know if this is related or how, once again, this isn't a big deal in the grand scheme of things, but if an update is installed, you do not see the progress it's making!

    I ran a system restore, without success.

    Running Windows 7 on a laptop Acer Aspire. Any suggestions welcome, although I'm not that tech-savvy!

    Thank you

    Hello

    The first thing to check is your theme controls. Go to the control panel and select personalization. When this window opens, go down and select wallpaper. When this window opens go to the lower left corner and make sure that the background that position of the image is set to 'bridge '. Save the changes and return (right click on the name of the theme in the theme dialog box).

    Let me know if this solves the problem for you.

    Kind regards

    BearPup

  • I am developing photos in lightroom.  My photos are below the screen but the screen is lit in blue.  I double click on an image and nothing happens.  I can look in the library, but they don't come to develop.  Anyone know what

    I am developing photos in lightroom.  My photos are below the screen but the screen is lit in blue.  I double click on an image to display and nothing happens.  I can look in library mode, but not in the mode to develop.  Can someone help me?

    Hi pennym,

    Please follow the steps below.

    Open Lightroom

    Go to Lightroom preferences in the Edit menu

    Click the performance tab

    Deselect the graphics processor

    Restart Lightroom and try to use it

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • My iPhone my iPhone 5 guard by clicking on things at random, by clicking on the things im not clicking on and freeze momentarily. But the screen is not cracked

    My iPhone 5 guard by clicking on things at random, by clicking on the things im not clicking on and freeze momentarily. But the screen is not cracked

    You should go to the apple store and ask them to check it for you! You may have a faulty screen or faulty motherboard! in any case it is best to call or go to the apple store

Maybe you are looking for

  • Authentication with Gmail problem

    HelloLike many other users, not only on Firefox, Chrome and other browsers as well, I've been constantly do this message on Gmail for a few weeks... "Gmail is having authentication issues. Some features may not work. Try to connect to the problem. Co

  • How to find the history of purchases

    I have many recipes in the history of the purchase, how to search by keyword to find a?

  • Group video calling

    I have 10 people in a group (including myself still makes 10) but only as half of these people comes in and mostly everyone comes in the call and we have videophone but when we add an extra person in the group, we can have video calling that's as lim

  • New backup on Time Capsule

    My Time Capsule was fortunately automatically back up since September 2013 using Time Machine and is full by far. However, Time Machine this week said that a new backup should be created. I created this, and after about 24 hours, the new backup is co

  • Users of accounts Hotmail does not invite E-mail

    Hi, I use the Netgear 204 system everything works fine. 6.3.5 software Although I would fix ReadyCloud access to family records. Everyone that I invite you has a hotmail.com address does not invite him. Anyone who has a work related e-mail gets the i