Object visibility

  • #1, by marianna-lapinaMonday, 25. March 2019, 13:50 5 years ago
    I have an object on screen which, when looked at should trigger an object to show up.  I probably need to set object visibility of the big post it note to 0% and when 'looking at tiny post it note' is executed set big post it note visibility to 100%, but I don't understand where and how to do that exactly. And then when the cursor leaves the area of the big post it note the visibility should be set back to 0%. 

    Newbie

    8 Posts


  • #2, by shicoMonday, 25. March 2019, 15:14 5 years ago
    1 - Create a conditon called  "big_note"  start "false"
    2- In "Big note"object properties link the big note object to the condition you create above.

    3- in "Big note" actions  add:
          Cursor leaves objects area 
              Change condition "big_note" to "false"

    4 - in "small note" actions:
           use execute command on object
            "look" executed ----> change condition "big_note" to "True"

    *don't forget to draw an object area for each object  


    Newbie

    21 Posts

  • #3, by esmeraldaMonday, 25. March 2019, 15:48 5 years ago
    You can use interfaces for the close ups.

    Create an interface with the item you want to show as background and assign it to your character. Choose an interfaceclass you haven't already used. (or create a new one)
    Create an action on leaving the interface (in the properties of the interface)-> hide the interface (actionpart show/hide interface)
    You need to hide the interface at the beginning of the game (game properties). 
    In your look action you show the interface (actionpart show/hide interface). It will hide again when leaving the interfacearea because of the action you created in the properties.


    You could also create an image as big as your resolution as background of the interface. (transparent background, image in the middle) So clicking outside the image wouldn't cause the character to walk. 

    Key Killer

    508 Posts

  • #4, by marianna-lapinaMonday, 25. March 2019, 17:01 5 years ago
    Thank you a lot!!! I really appreciate it! 

    Newbie

    8 Posts

  • #5, by afrlmeMonday, 25. March 2019, 18:03 5 years ago
    As Esmeralda said, you can use interfaces... check out this tutorial I wrote the other month - especially the bit about using an interface for close-up stuff.

    Imperator

    7278 Posts

  • #6, by shicoTuesday, 26. March 2019, 11:06 5 years ago
    Thanks for the "Grid based scene" tutorial Lee! I wasn't aware it's available. I guess I got used too much to using "conditions" for everything!

    Newbie

    21 Posts

  • #7, by MachtnixTuesday, 26. March 2019, 15:41 5 years ago
    It's OT, but your painting is wonderful. I hope to see more. Good luck!

    BTW: I remember you have only six  interfaces to create? Is this correct? I had a similar problem, because I used interfaces for every pop-up notes (like: do you want to save? Or: a treasure map to zoom), and at the end of the day all five or six interfaces were consumed. No more interfaces. But it was version 4.2.5, maybe it's better now?

    Thread Captain

    1097 Posts

  • #8, by sebastianTuesday, 26. March 2019, 16:04 5 years ago
    you can create new interface classes via the Explorer (ctrl+e / cmd+e) 

    Thread Captain

    2346 Posts

  • #9, by MachtnixTuesday, 26. March 2019, 17:27 5 years ago
    Really? Thanks.

    Thread Captain

    1097 Posts