rolandzarmy's Recent Forum Activity

  • Hi!

    I've been trying the shadow casting behaviour and I encountered some problems.

    I have 3 questions:

    - I realized that shadow casting objects under another shadow (from another object) doesn't disappear. For example: walls out of sight are still there. Is there a way to make it more realistic?

    Here you can see that the wall is out of sight but still displayed.

    - Is there a way to test if a sprite is under a shadow or not?

    - Is there another way to make sprites under a shadow disappear than putting them at a lower layer?

    Cheers

  • No lol.

    It was in my example (the picture) that:

    Walls over player: True

    Player over Dead angle: true

    Dead angle over walls: No true

    But I want Dead angle over walls to be true.

  • tarek2

    Sorry I feel I wasted your time. You got it with the Walls over Player over Dead Angle over Walls.

    This is the example

    Walls over player: check

    Player over Dead angle: check

    Dead angle over walls: no

    Hopes it makes it clear lol.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you I'm going to try this. It seems much more simple.

  • So implified the whole thing to make it simple

    I don't know how to make a demo but I think it would just confuse you. I deactivated the shadows. So here you see the player between two walls. The walls are over the player to make a little 3D effect.

    I put the Dead angle (black thing) on top. It looks cringy like this. So this is why I prefer the player being on top of the Dead angle, Dead angle being over walls (so you can't see them behind you when looking in the opposite direction) and the walls being over the player.

    Hope it makes it clearer enough;)

    Tanks for for considering the subject.

  • tarek2

    Yes sorry for not being clear enough. I'll do my best. The walls are the grey objects. The black shadow behind the player is actually a sprite and not a shadow. The other black parts are shadows (you can ignore them as they are not part of this question).

    I want the wall to be over the player as you can see in order to make it a little bit more 3d.

  • Wow forgot the picture...

  • tarek2

    Of course,

    Here as you can see Walls overlap player, player overlaps dead angle (which is actually a sprite pinned to the player), and Dead angle should (but doesn't here) overlap the player.

    But as Ashley said I could instead try to erase some part of the line of sight so it fits to the player image.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Ok thank you that's what I wanted to know:)

  • Hi again!

    This question is simple and I wonder:

    Consider 3 objects

    Is it possible to make A overlap B, B overlap C, and C overlap A?

    Example: it's a 2d top down shooter: Walls overlap player, player overlaps dead angle (dark zone behind the player: where the player can't see), dead angle overlaps walls:

    Thank you for all help <3

    Roland

rolandzarmy's avatar

rolandzarmy

Member since 11 Apr, 2020

None one is following rolandzarmy yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies