How do I mask out part of a solid wall

0 favourites
  • 3 posts
From the Asset Store
Wall Pin Board is a hyper causal game developed for fun and inspired by YouTube video whose link is given in description
  • Is there a way to have a wall sprite with a solid behavior and have another moving sprite overlay it acting as a mask, also masking part of the solid/collision area of the sprite simultaneously (so the mask would affect the wall "shape" also for collisions and not just visually)? Or is there another method which could achieve something like this? Maybe a tilemap with small tiles instead of a single sprite?

    Trying to see if this is possible in C3/C2, any tips and ideas are welcome :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It depends on your game and how you are using this solid wall. For something simple like bouncing bullets you can make your own collision system, for example:

    Bullet is overlapping Wall
    Bullet is not overlapping HoleInTheWall
    ........ Bullet bounce
    

    If you need Solid behavior, then I would probably go with an invisible tilemap, where you can set and erase tiles based on wall configuration.

  • Thanks dop2000 ! I ended up going with a simplified version without tilemap for the time being, using a combination of small sprites, checking if there's overlap and some distance calculations, it should be enough for my needs for the time being :)

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