How do I use invible layers or it´s a bug?

0 favourites
  • 4 posts
From the Asset Store
It's here!
$4.95 USD
Creepy and nasty horror track. It's terrifying from the beginning till the end. Goosebumps guaranteed
  • Hello,i never used a invisible layer with touch options before.

    Layers "invisible layer" and "game layer"

    The invisible layer has the option" initially visible disable" and obviously cannot see invisible layers objects on the screen, but the thing is that they are still detecting my touchs. So, is normal or it´s a bug?

    Because if is normal, i have to use the "initially visible" option on every object, also use an event to set visible each invisible layer object one by one... Thought i just needed to set invisible to the layer.

  • I think it is possible but for something like that you may not want to use Game Mode. Game Mode should be reserved for rules and such, for the game. Perhaps player state would be a better location. Also keep in mind how your game is developed, ie multiplayer game or single player. Certain blueprints like Game Mode, Game State and Player State are replicated so there may be some functions you don't want or need to have replicated to the server or other clients.

    Most actors have a "Is Visible" and "Hidden In Game" boolean default setting so all you need to do is get a reference to the actor you wish to"toggle" then set appropriate boolean.

    Hope this helps! Thanks!

    kissanime

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • All layers and all objects register touch events, regardless of visibility.

    You need to add another condition to your touch events checking if the layer is visible. Another common solution is to move touch events into several event groups, which you can activate/deactivate as needed. For example, if you have a menu on a separate layer, when menu is not visible you deactivate "Menu Controls" group and activate "Player Controls". When you need to display the menu, you activate "Menu Controls" and deactivate "Player Controls".

  • dop2000 and Dyrasan ... i was using on touch object and if is visible, the object was invisible but still activating the button effect of returning to the main menu. And i got the answer of having a " game state" just like in unity.

    Thanks.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)