rolandzarmy's Forum Posts

  • Ashley do you have any answer to this por favor?

  • Hey!

    I have read all the multiplayer tutorials and when you let it sink in the puzzle pieces fall slowly into place.

    But one thing that didn't fall into place for me is if it is possible to have a sprite visible only for one person.

    In this example:

    Each player has a sprite that only them can see and not the others. To be more specific it's a shadow behind the player that hides what is behind them (like a dead angle).

    Thanks in advance for any replies.

  • Ashley

  • That would be great also to know if it is possible to "test" if a monster is in a shadow.

    This way I could make this:

  • Hm yeah I guess I could make a wall/player disappear if it's out of sight with raycasting or line of sight.

    But I don't think I could make a wall partly disappear? Like in the photo I posted in my first message.

  • tarek2

    Ah hahah now I understand how we got confused. I was using the wrong terms^^

    oosyrag

    Yes thank you

  • I linked a copy of my project to give you the idea. My ultimate goal is just that things under shadows disappear and I don't know how to do that.

    drive.google.com/open

    Thank you in advance.

  • tarek2 Ashley

    Thank you that you gave me fast answers and help:)

  • I checked your capx but it doesn't solve the problem. Forget my project it just makes it more complicated.

    And just look at the picture Ashley sent.

    It is the painter's problem. Because of the Painter's algorith Construct 3 uses it's impossible to make Green over Blue and at the same time under Red.

    The best solution is exactly what Ashley said: cut the geen in half. And layer one part over Blue and the other one under Red.

    But I actually solved it on my own^^; because in my case Green is pinned to Blue. I can have Green at the highest layer and erase the overlapping part between Green and Blue.

    (So it looks as in the Painter's problem photo but the only difference is that the overlapping part between Green and Blue is erased)

    If that makes sense.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.