Sub Application visibility issue

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi everyone

    I am making a sub application to act as a dialogue window.

    Just initially too test I have setup this in the main frame. 1 even with 2 child events:


    User Presses G:

    - Subapp1 is visible
    -- make invisible

    - Subapp1 is visible (neg.)
    -- make visible


    I start it visible. If I push G, it goes invisible, but then never comes back.

    I can't seem to figure out what I've done wrong here!

    is it better to end the sub app, and then restart it each time and place it at the right position on the screen?

    Thanks for any assistance

  • Oh sure!

    Instead of directly making the change when the button is pressed, I added an active object out of the frame. When the button is pressed, it toggles a flag on the active object. 0 for unpaused, 1 for paused.

    Then I added the hide/show events to fastloops, which are triggered whether the active object's flag = 1 (or 0)".

    This however led me to a new issue:

    Please login to see this link.

    so I may need to look for another solution! Since the actual game all runs out of 1 frame (using layers and groups for different screens and their events) I may just make the pause menu a part of that frame instead and see how it goes.

  • The way I like to use with sub application is like this:

    1. Untick "Create at Start" on the sub application.
    2. When you want to show the sub app, use "Create new object" and select the sub application and then set where you want it.
    3. On the actual frame that the sub app is showing, have it so when you want to close the sub app use "End application"
    4. On the frame that has the sub application object, do this condition: Sub application has ended -> Destroy sub application

    This has worked fine for me without any issues.

  • I forgot to mention that you also have to put the condition "Number of sub applications = 0" in the event that creates the sub app if you want to prevent more than one sub applications to be created.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!