A big question: timers, masking layers, etc.

Well, I know I asked a lot of questions lately, and it's because many aspects of flash is confusing to me, but I feel I'm learning a lot as well. I think this is my last question for this game because once I get this down my game will be more or less complete.

Very well. Here's my problem, and I have no idea how to do to start.

My Start menu is a button of start, Instructions and credits. I can work on the instructions and credits later, but I have some problems. I know I'm asking a lot here, but I don't know where to start then same useful tidbits would be most appreciated.

Timers

Basically, the main game has timers that spawn enemies flying at you. This is one of the many timers I

enemyTimer += 1;
If (enemyTimer > 5)
{
enemyTimer = 0;
_root.attachMovie ("Enemy", "Enemy" + _root.getNextHighestDepth (), _root.getNextHighestDepth ());
}

and of course, I defined enemyTimer and set it to 0 on the part of the onload function. Powering other enemy timers, timers etc. are essentially the same.

The thing is that (I hid it all layers except those necessary to the start menu, but I still have enemies, bonuses and various other things fly across the screen)

I don't know how to do to be able to stop all the timers at the beginning and once you press the Start button to begin the timers (enemyTimer += 1 ;))

Layer display

(this one should be relatively easy to solve it for you guys )

I know how to hide and show layers, but I don't know how to make sure some layers are revealed at some point of the game, or with the click of a mouse, etc.

onMouseDown = function

{

???

}

It is my understanding that you can hide individual video clips using Boolean variables, but I don't know how to hide layers together... Is there a way around this or do I have to hide each individual movie clip?

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

This should be it thanks for all your help guys, and I really hope that this game turns out well

-Spaghetee

It is best that you keep sections separate from the issues also separate... it helps people who maybe have a search for a solution.

You need to hide/show all objects, you can not hide/show layers as a run-time activity.  If the design allows it, you can place all the objects inside a movieclip and then control the visibility of this movieclip instead of control individual objects.

Tags: Adobe Animate

Similar Questions

  • Masking layers, seems possible, but making mistakes

    Me again, asking weird questions...

    I want to hide certain utility layers in a model, generated by my plugin.  There are some discussions related this topic:

    Masking layers using shyguy and javascript:

    http://forums.Adobe.com/message/5775496#5775496

    Masking layers using AEGP_SetDynamicStreamFlag

    http://forums.Adobe.com/message/2809938#2809938

    I chose to use the SetDynamicStreamFlag method.

    I hacked a version of example of the SDK CEAP "Commando" and added the function CommandHook the following logic:

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

    ERR (suites. ItemSuite6()-> AEGP_GetActiveItem (& active_itemH));

    Err (Suites.CompSuite4 ()-> AEGP_GetCompFromItem (active_itemH, & compH));

    ERR (suites. LayerSuite5()-> AEGP_GetCompNumLayers (compH, & num_layersL));

    for (it = 0;! err & & it < num_layersL; it ++) {}

    ERR (suites. LayerSuite5()-> AEGP_GetCompNumLayers (compH, & temp_numLayersL));

    ERR (suites. LayerSuite5()-> AEGP_GetCompLayerByIndex (compH, it, & layerH));

    ERR (suites. DynamicStreamSuite4()-> AEGP_GetNewStreamRefForLayer (NULL, layerH, and streamH));

    the following command causes AE generate an error.

    ERR (suites. DynamicStreamSuite4()-> AEGP_SetDynamicStreamFlag (streamH, AEGP_DynStreamFlag_HIDDEN, FALSE, TRUE));

    Err2(Suites.) StreamSuite4()-> AEGP_DisposeStream (streamH));

    streamH = NULL;

    }

    ------

    It's * work * CS6, but it is also throwing an error when I run the AEGP_SetDynamicStreamFlag.  The error is:

    After effects error: failure of internal audit, sorry! {asked for the invalid property path component}

    However the layers become hidden, even if I have to run the plugin several times so he can hide all the layers of the model.  I think that the raised error breaks the loop that I implemented in the code above.

    BTW, it seems to work for a variety of layers, layers of images, sound and cameras are hidden.  The only downside is this error that happens every time.

    MindManju said that he was able to do this work in the related thread, but does not mention a mistake.  I guess I'm just something wrong here.

    I would be has responded to the thread, but its quite old and I wasn't sure what appropriate forum etiquette is when it comes to old threads.

    Any help is appreciated!

    THX

    -Andy

    PS: Yes I'm still pretty green to the SDK and C/C++.  I don't know that I'm probably doing something wrong in this code example

    Well, it OF kind of a hacky solution, which was never intended to be used...

    But if you are determined to go back, so AEGP_StartQuietErrors() to

    do errors disappear.

    and also make err = NULL, after each AEGP_SetDynamicStreamFlag, or the

    engulfed with ERR() lines will not run.

    (this is a mcaro which does not work if err! = NULL)

  • What happened with my CC of Photoshop and it's Plug - ins, all disappeared... There where the Photoshop logo was in the dock is now a big question mark...?

    What happened with my CC of Photoshop and it's Plug - ins, all disappeared... There where the Photoshop logo was in the dock is now a big question mark...?

    Please see: cannot install Add Ons for the Creative Cloud 2015 products

    You can also check: the basics of the Mac: the Dock holds your favorite applications, documents and more - Apple Support

    Let us know if that helps.

  • Lost layers etc.

    Hello

    I lost my layers etc. from the right side, how to bring them back?

    Screenshot_4.png

    Even easier: just click the button 'Reset panels' upstairs next to the buttons 'Undo' and 'redo '. Or go to window > layers.

  • Missing object, color mixer, panels layers etc.

    Hi, I'm trying to help a family friend having problems with its programs on the fly. She has Fh9 and FhMx, both on a PC running WXP pro.

    In both programs, the signs of objects do not appear. If I go Windows > object nothing happens. Even if I try Ctrl + F3 etc. The same problem occurs with the color mixer, documents, layers etc. Nothing happens if I use small icons on the main toolbar either.

    I tried to go to the preferences and re-creation of default values, but nothing happens.

    I know this is an old program, and it must convert to Illustrator. But it's a bit weird and iritating. Someone at - it ideas?

    Perhaps you have not deleted the correct preferences file. See this technote.

    http://kb2.Adobe.com/CPS/131/tn_13188.html

    Judy Arndt

  • How to use the same mask, stencil, etc for several layers? Photoshop equivalent of the masked group?

    Hi I spent over half an hour for search manual, forums and the Internet and still can't find the answer. Help, please!

    For example, in a model with 5 or more layers, I want to use the same mask or stencil or what can hide layers 2,3 and 4 but areas layer 5 and all other possible layers below should not be affected.

    1. Before dialing the layers that you want to hide and apply a matte for the demo using the mask. Think to the Dial as an equivalent to the creation of a layer group.
    2. Use the effect on each layer you want to hide. It's easier to do if you apply mast set once and then create an animation preset to apply to the other layers. Just get mast set to do what you want it to do on the first layer, select Set Matte in ECW or in the timeline panel, and then go to the Animation > Save animation preset. Select then all other layers you want to apply the set matte to apply the preset.
    3. Put the mask at the bottom of the layers that you want to hide and turn on the switch to preserve transparency, then this group in composition with other layers of nesting.

    Here's another tip. You can set a custom color for all the layers you want to use the mast, then use the custom color for a group selection. This can make things easier down the line.

  • A big question mark gray

    Twice in the last few weeks, when I walked away from my iMac for a few minutes, I'll be back to see a big gray question mark on the screen.

    The mouse is not a click or move, and the only way to get rid of the question marks is to reboot, that thin iMac.

    Is this a sign that I need to replace my iMac? I would rather not still.

    24-inch Mid 2007 10.9.5 system.

    Thank you!

    Looks like your Mac has restarted and couldn't find the startup disk. See on the screens you see when you start your Mac - Apple Support

  • Big questions (not enough space for DB, don't see music)

    I had a big problem. Appearantly, napster wanted to max out of space on the "rocket". If she did. When I lit a few hours later, he gave me a message about how there was no place for a music DB.

    I went to spend a few songs on the SD card, but I found that Windows no longer saw the device as a device. He saw it as a drive.

    I'm screwed. Just play, I turned on HOLD and then disconnected everything hold back. He complained no place, but proceeded to normal operation. Once it synchronized is the media. I was able to view the settings for the USB mode then put him at PSG.

    My question is why/how he got into MSC, and why it does this as well as he thought he ran out of room?

    All sorts of reasons. Much obtained from corruption in tags and another get corruptions in memory, and sometimes you just fill too full of player.

  • CC for Flash CS 5.5 Flash symbol to drop or lack of layers, etc.

    I work in a TV broadcast animation studio. I use Flash CS 5.5. I have a freelancer using CC. I also have other members of the team who work in the same files CC using CS 5.5.

    Graphic symbols keep abandon, endangered, or parts are endangered.

    Graphic symbols are characters of animation with arms, legs, eyes, etc.  I created new files with the elements in CS 5.5 with the same result, symbols of corruption. This is the first time I saw several corruptions of symbols.

    It allows to work impossible Flash I'd recreate the ignored symbols, or hope they work later. Many people will use the files in our pipeline, which all have the same problem.

    As downgraded to CS 5.5 is not possible for the Freelancer using CC and we don't have not yet converted to CC in studio is there a workaround?

    I work in a studio of animation TV so years we have seen this exact question during the passage of CS 5.5 CC when you have symbols like! @# $% ^ & * in the name of the coast. We used to use * a lot of symbols but CC will not allow it if we were to change our naming conventions. I found this on the responsible Add-ons of CC, but cannot check if it works.

    https://creative.Adobe.com/addons/products/1577#.VnTGoEo4FhE

  • Question about the layers of Movieclip

    Hello

    I'm a total newbie.  In the photo, I click on movieclip movieclip and 1 2 appears, but it appears below movieclip 3.

    How can I make film clip 2 appears above movieclip 3 without layers.

    Thank you very much.

    KC.

    test.jpg

    You can use setChildIndex().  Here is a link to an example of solution:

    http://StackOverflow.com/questions/11737925/AS3-SetChildIndex-to-front

  • Question simple mask

    Primitive question: I need to select an area one apply an effect (probably Gaussian Blur) to an area of an image.

    I drew a mask over the area, but when I apply the blur, it affects whole frame.  What Miss me?

    This video shows the apply an effect to a small part of a scene by applying the effect to an adjustment layer with a mask on this subject:

    adaptation http://TV.adobe.com/watch/Learn-by-Video/Adobe-After-Effects-CS5-Motion-Tracking-and-rotos.

    This should give you the basic idea.

    Since you are new to After Effects, I recommend you start here.

  • Question of mask - only allowing the mask be moved in an instance

    Hello

    I set up a game, where the user must guess which photo is by moving a small hole/portal.  I used the mask feature to do this and managed to fix the portal to the mouse.  However, I must stop the mouse by dragging the portal when the cursor moves outside the image / instance.  This is so the user can then press buttons to return to the main menu, etc..

    Here's the code I used to fix the portal

    onClipEvent (load) {}

    startDrag ("", true);

    Mouse.hide ();

    }

    Hope that all directions (doubtful!).  Would be great if someone can help me.

    See you soon,.

    John

    There are a few things you could do.  If you are looking for the startDrag function, you will see how it includes additional parameters that you specify for limiting the draggable area for the object.  In addition, using these same limits in a slightly different way, with an onMouseMove event handler, you can set up conditionals that detect when the mouse leaves the area so that you can run the stopDrag() function.

  • P500 - big questions re: hard drive

    Greetings to the Group!

    My Ideapoad P500 is about 16 months (the warranty period is therefore, of course!) A few nights after a reboot I got the message "hard drive to fix the errors. It may take an hour or more. "... or something very similar. The laptop hooked to this message for more than 18 hours.

    I did a hard reboot and now get the message "check media' followed by the error"initialization failed." This leads to the message "default dbo device missing or failed to start."

    No I don't have any recovery media

    Yes I have backups fairly recent, it's not a problem.

    I have a box that I can use to connect my portable hard drive till I can see if the drive is still readable.

    That's the 64 thousand dollar question... How can I get the hard drive of the laptop? I took the five screws from the rear. At this point, I think the DVD player needs to come out, but is not.

    Can someone point me to a video or a document that describes in detail how to get the hard drive out?

    Thanks in advance for any help!

    Bob

    Welcome to the forum rdbjr57,

    Here is your hardware Maintenance Manual (HMM). There the disk removal guide, with instructions and photos.

    http://download.Lenovo.com/consumer/mobiles_pub/lenovo_z_p_series_hmm_v1.0.PDF

    See you soon

    DragonRider

  • MapPoint 2013 questions about map layers

    MapPoint 2013 will create maps in layers (not the bug to an existing map additions), without using the SQL Server add-in?

    Hello

    Check with the help of MapPoint and in the MapPoint Forums.

    Highway, Streets & Trips, MapPoint - Forum
    http://social.Microsoft.com/forums/is/streetsandtrips/threads

    MapPoiint - Support
    http://www.Microsoft.com/MapPoint/en-us/support.aspx

    Support for MapPoint, streets & trips and Highway
    http://support.Microsoft.com/ph/851

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • 'unknown' and big question mark on my network card

    Hello
    I get an 'unknown' with a big blue? on my map network between my computer and the router.
    I already did the following:
    Restarted
    Reset router password
    unchecked some v6 button
    not all users connected
    just abot all I've read about this.
    It will go away for a period short and low and behold he came back.
    What is it?
    Why is that?
    How can I get rid of him?
    Thank you so much in advance.
    He

    I had the same big blue mark on several of my machines and know that the bonjour service is not installed on any of them - all clean installed Win7, Win2k8R2 and Win7Home.  The only thing they had in common was RealTek network cards (or at least that's how they are marked in Device Manager).

    If your NETWORK card is a RealTek PCie or similar, you could try going to Device Manager and click on the Advanced tab of the RealTek network device.  There you should be able to navigate down to an entry labeled "priority and VLAN.  If activated, try to define this VLAN enabled.  I could do this fix on 3 of my machines with RealTek NIC and it seems that the problems of mapping network disappeared.

    [I'm not saying that the bonjour service is not causing a? mark for others, but I got no Hello on my machines.]  The fix above eliminated the? all cards on all the machines in my network].

Maybe you are looking for