Top-down visibility radius issue

0 favourites
  • 3 posts
From the Asset Store
Set of tiles to create a map for top-down games with island theme
  • Hi,

    I'm working on a top-down visibility system with light and darkness mechanics. What I currently have is a system where on overlapping with a particular object, I set the object's visibility to true.

    But, this cause the entire sprite to be visible. I'd like for it to only show what is within my object/character's visibility radius. How can this be done?

    Also, right now, I need to perform the above check with every available sprite. Is there a possible way to perform this check with any obstacle the character encounters?

    Thanks in advance :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Depends how complex you want the light modelling to be, but at the simplest level your could just have a black layer on top of the game layer, that fades towards the middle <img src="smileys/smiley16.gif" border="0" align="middle" />

  • Yep, after working on it a bit more, I found that the problem was with layers and the fact that I had to reference the instance instead of the sprite itself.

    Thanks regardless :)

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