How do I fix this Invisibility Issue

0 favourites
  • 5 posts

    The Map Layer is using Event sheet 4.

    Goal: Have a Unlocking level system, Player returns 20 nuts the level Unlocks, this seems to work.

    When on the Map(press Enter during game, go to map , press Z) the player can move the Map Selector Icon that I have made, as it overlaps the numbers it either says LOCKED or RETURN 20 NUTS TO UNLOCK NEXT LEVEL......i am using a invisible system....make text visible when var is greater than 20, (for example)...

    my issue is this, some reason the game is lagging, meaning on the map , text is carrying over and being visible when it should not....for example when the Acorn Icon is over The intro map, zero text should show up...but when i start moving around the Map and then go back to the Intro Map level it shows the text that should only be visible when the Map selector Icon is over that particular sprite....and I have no idea if I just have to many Events or what.

    hopefully it makes sense..kind of hard to explain. ... uts/18498/

  • Can you post a capx?

  • Your event sheet is a huge mess. I'm optimizing it right now... Posting soon.

    [EDIT] Man... It took a lot more time than I thought. You have tons of redundant events and they are certainly affecting this visibility setting.

  • Here it is. Check if all functionality is there. Note that I deleted things that became unused and renamed other stuff. The code is far simpler now and I believe everything is working fine. Read the comments in the code, I put then there to guide you.

    Here's the .capx:

    Some tips

    Avoid having several text objects with the same content and functionality. If you need a text to change upon selection, just change it by code, instead of piling fixed text objects and controlling their visibility.

    Avoid having several identical sprites. For instance, you don't need a different lock sprite for each level if they'll look the same. Just copy and paste the same sprite on your game, since each instance is independent.

    I'm sure there's a lot of optimization to do on other event sheets, but, unfortunately I couldn't take a look at them, due to lack of time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey bruno, just saw this, thanks man. ill check that out

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