make a sprite invisible

0 favourites
  • 7 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Hello,

    I think its an easy thing, but some how its not working for me.

    I have a sprite and a cave open from both sides.

    I want the sprite to be invisible when its on collision with that cave and when the collision is finished the sprite will go visible again.

    How can i do it?

  • system --> on start of layout. then click your sprite and set visibility to invisible

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • smitchell, Thats not what i want.

    "I have a sprite and a cave open from both sides.

    I want the sprite to be invisible when its on collision with that cave and when the collision is finished the sprite will go visible again."

  • sprite is overlapping cave -> set visibility to invisble

    [invert] sprite is overlapping cave -> set visibility to visible

  • Thanks Yann, I tried the on collision but there is no invert for it.

    I thought the on overlapping is also without invert.

    Thanks :)

  • There's no possible way to invert a collision because a collision is an instantaneous event, it's called a "trigger"

    Instantaneous because it's true just in the tick it happens. Neither before nor after.

    Maybe you can understand more about this concept looking at other triggers like "on animation finished", "on key pressed", etc.

    They are all triggers.

    To recognize a trigger amongst the other kind of condition (normal ones and loops) you can see that they have a green arrow on the left.

    You can't invert a trigger.

  • Thank u Yann, I really appreciate ur help.

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