Can I do a behavior 'pause' for a second before moving on to the next line of the script?

Hi all! I do a style Carnival "Duck Shooter" behind the game speeds, where the ducks swim in any of the scene at random, the user to 'pull' the ducks as far as possible within a given period. I met a problem that I can't find good advice!

When the ducks are "shot", they change to a member of the duck, distribution with 'blood' on it, then disappear offscreen (by a big lag) to return to the scene at random intervals to keep the game going until the time is up! However, the action of disappearing off the screen happens too fast, so you never see the ducks splashed blood! I tried to put the "move screen and return to the Member unbloodied original mouseUP, instead of mouseDown (where the score stuff and sound effects occur), but while it does not for the most part, if your 'click' is not fast enough, the duck continues simply swimming covered in blood, rather than disappear off the screen."

What I need, there was a delay after the change in original cast BEFORE it goes out of the screen and back changes, while the splat of blood can be seen. But I do not know how? Here is a code snippet...

If (pDuckSprite = sprite (9)) or (pDuckSprite = sprite (10)) or (pDuckSprite = sprite (11)) then

-Delete a partition

Set gvScore = gvScore-1

-Play "fail" sound

puppetSound 3, Member "duck_quack".

-'pull' the duck

Sprite (me.spriteNum) .member = 12 <-past to the bloody duck

BEHAVIOR BREAK HERE?

-Duck to move off the screen to come back later

pDuckSprite.locH = pDuckSprite.locH - 2000

-back duck "unshot".

Sprite (me.spriteNum) .member = 9 <-comes back to original duck

Any help will be much appreciated

It solved! For anyone else having similar problems, I used a quick timer to pause the scene for 1/10th of a second before using the following code;

-wait a fraction of a second (so the user can see blood splash until the next action is running!)

startTimer

Repeat so that the timer<>

updateStage

end repeat

Sorted

Tags: Director

Similar Questions

  • How I continuously loop frames with pause for 20 seconds in each image of the scene even without going to the next scene?

    How I continuously loop frames with pause for 20 seconds in each image of the scene even without going to the next scene? There are buttons for other scenes in these images. The below works well until I got to the last frame of the scene, then he goes to the next scene and plays. How can I make one loop continuously.

    Stop();

    var: timer = new Timer (20000,0); / / <--

    timer.addEventListener (TimerEvent.TIMER, timerHandler);

    Timer.Start ();

    function timerHandler(event:TimerEvent):void {}

    this.nextFrame ();

    or if you want to jump for example 5 executives

    this.gotoAndStop(this.currentFrame+5);

    }

    Thanks for any help.

    If you want to stop your timer, use the stop() method:

    Timer.Stop ();

    PS when you use the adobe forums, please check the useful/correct, if there is.

  • After a pause for a second before playback of effects

    Once a prerender completed after effects takes one second to start the Visual reading. VO begins immediately. This corrects itself once the timeline plays through completely and start from the beginning.

    Any ideas?

    As Rick says, it's a bug known Mac OSX v10.10 (Yosemite).

    See this:

    After Effects Mac OSX v10.10 (Yosemite)

  • Quiz slide waiting for Audio finish before moving on to the next question

    Hi guys, hope you can help. I have 5 questions with audio inside to narrate the question and the response to selection. Once you have chosend your answer, then click on submit button... it waits until the audio ends then proceeds to the next question.

    I hope you can help

    Thank you

    Hi leshanley,

    try setting QuizProperties > Action > success

    "Jump to slide" instead of "continue".

    Do the same for the last attempt.

    Best TD

  • Can we get a video clip for WINDOW 10 before August 29?

    Can we get a video clip for WINDOW 10 before August 29?

    What do you mean by video clip?  There are millions of clips of all the latest versions on YouTube, officially of Microsoft and enthusiasts who like to share.

    In addition, if you run the preview edition, you can open the application 'Getting started', and there are videos more functions and features.

  • PS CC load and freezes for 45 seconds before anything can be done.

    PS CC load and freezes for 45 seconds before anything can be done. Even the red x in the upper right is frozen during those 45 seconds, then everything is gone. I'm running on Windows 7 Professional with 32 GB of ram.

    It makes no difference if the GPU is enabled or disabled.

    Can anyone help?

    Thanks in advance

    Paul

    Hi raffeld,.

    I suggest you to please disable the Welcome screen and also do you have images in the library of Photoshop or not?

    Kind regards

    Tanuj

  • Since the upgrade to 8.0, when navigation between screens, my computer screen becomes black for 1 second before the screen is redrawn. This happens regularly and is a major nuisance. It simulates a power failure. It does not happen with IE.

    Since the upgrade to 8.0, when navigation between screens, my computer screen becomes black for 1 second before the screen is redrawn. This happens regularly and is a major nuisance. It simulates a power failure. It does not happen with IE.

    Here I answer to my problem: I upgraded my graphics card and the problem seems to have disappeared.

  • How can I fix iphone and ipad to recognize my printer air.  I t o disconnect the printer and wait for 30 seconds before reconnected and then they both recognize the printer

    How can I fix 6s iphone and ipad air when they do not recognize my printer air.  After unplugging the printer for 30 seconds, they can connect to the printer

    Hey robertafromnull,

    Thank you for using communities Support from Apple. We can see from your post that you are having problems with printing of your devices on a printer of Air and that it would be happy to provide advice to solve this problem.

    Let's start by going to the section called "If you can not print on your AirPrint printer" in this link here: Topic AirPrint. This should contribute to help you get started with you back to printing from your iPhone / iPad. Let us know if this can help, or if you encounter any problems.

    Kind regards.

  • Whenever I try to open other pages, they'll just be "loading" for 30 seconds then it says that the page cannot load (as if my internet is disconnected)

    Recent internet connection problems

    Recently, my internet has been acting weird. He has never acted like this before, until 2 people moved my basement and began to share Internet (maybe a coincidence, but not sure). Sometimes when I leave my computer on and stay away from the keyboard and go back some time after and open my internet browser, only my home page would be in charge. Whenever I try to open other pages, they will simply be "loading" for 30 seconds then says that the page cannot load (as if my internet is disconnected). But the problem is, when I click on network and sharing Center, there is nothing wrong with that.

    Access - LAN and the Internet
    Connection - connection to the Local network

    It's the same when my Internet works fine, but I can't just browse other Web pages EXCEPT the home page that appears when I first open my browser. When this happens, I usually unplug my modem then reconnect OR just keep trying to load a page when after like 5 minutes or more, everything works normally.
    How can I solve this problem? It is annoying and happens almost everytime I go back to use my computer after staying idle for some time.
    By the way, I noticed that I have 4 'networks '. I'm not sure what they are, but I could merge or delete them. It would help my situation?
    Control Panel-> network and interest-> network and sharing Center Center-> customize-> Merge or Delete network locations.
    I am very annoyed by the present and I would be grateful any entry in this case.
    Thank you in advance.

    Hello

    Follow the steps in this links:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

  • Video clips will play only for a second before stopping in Movie Maker

    I am experienced with Movie Maker, but now when I try to set up a series of video clips, the video only play for one second (literally) before coming to rest. I tried several video formats without success. I am currently on updates and have never had this problem before. WMV files are choppy and slow and sometimes stop, too.

    Hi NessaWest,

    1. did you of recent changes on the computer?

    2. you receive an error message?

    I suggest that you disable audio and video filters in Windows movie maker and check if it helps.

    Video and audio filters are programs that are installed on your computer that help interpret video files so that they will display and play correctly. Windows Movie Maker uses when you import a video and audio, extract your project on the table of storyboard / timeline, and when you publish a movie.

    (a) open Windows movie maker

    (b) click on Toolsand then click Options.

    (c) click on the compatibility tab.

    (d) do one of the following:

    ·        To turn off a filter, clear the check box next to the name of the video filter.

    ·        To activate a filter, select the check box next to the name of the video filter.

    ·        To restore the default list, click restore all defaults.

    When you restore the default settings, the list and the filters settings are given to the last known good setting.

    Video filters in Windows Movie Maker: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/video-filters-in-Windows-Movie-Maker-frequently-asked-questions

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can I install a password for a website before logging on to the Web site? As you need the password to get even on the page.

    Trying to set up a password for some websites for some people not even being able to get on the Web site, unless you have the password.

    Maybe this extension of aid:

    Note that extensions can easily be bypassed by starting Firefox in safe mode.

  • Where can I get a sim card for my mini during my stay in the Canada?

    I have a mini iPad and will need to get a sim card in the Canada to continue to use my iPad while there.  Anyone know where I can buy this sim card and maybe offer a good plan for my 2 months it?  Thank you!

    I got mine from Bell Aliant. You can look at the Web sites for the major Canadian carriers. You should be able to see their plans and maps of coverage. Depending on where you go to the Canada, some carriers may have one better coverage than others. I chose Bell Alliant because were the carrier with the best coverage in the very rural area to which I travel. They also had a location store.

  • Parental control: How can I set up parental controls for your computer, as well as with the internet

    How can I do to set up parental controls for your computer, as well as the internet. Can you please provide me with detailed instructions? Thank you

    Click on the start ORB, then select "Help and Support" and type "parental control" in the help search box.

    "xxHoneyBeexx" wrote in the new message: * e-mail address is removed from the privacy... *

    How can I do to set up parental controls for your computer, as well as the internet. Can you please provide me with detailed instructions? Thank you

  • If I repeat a leter during entry, the second leter wil not registered. Also, I have to pause for a second about removing the letters with "go back".

    How can I fix this. He ocured sudenly without action on my part that I know.

    Hi John,.

    The first two thoughts that come to mind are supposed to check and "fiddling" the following:

    1 Control Panel > keyboard > Ketboard Repeat Delay and/or keyboard repeat rate.

    2 panel > Ease of Access Center > facilitate the use of the keyboard > disable filter keys or to adjust the applicable rates, if you want to use them.

    I hope this helps.

    Good luck!

    Kosh

  • Why I can't download service pack 3 for windos XP, I'm running under the account HP_Administrator supposingly?

    I need to go to Service Pack 3 to run a new tax program, but windows update said I'm not Administrator ad.  I should add that I get error # 0x8DDD0002

    When you try to down load the service pack from 'Windows Update'.

    I need to go to Service Pack 3 to run a new tax program, but windows update said I'm not Administrator ad.

    Given that you do not specify this error message you receive, I guess you have found "Service Pack 3 Setup error. Access is denied. "since you mention that you run under the admin account.

    Download and install Service Pack 3 from HEREmanually. Save the file to your desktop. Double-click on the file and choose run. Make sure you disable any malware software and anti-virus first.

Maybe you are looking for