Destroy Character if not in Shadow

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Hi there, I'm working in a new game but it's a kind of special game, a game where you are a shadow and you need to be in the shadows to not die, ofcourse it will be a puzzle platform game.

    I'll let the images explain themself:

    <img src="http://i.imgur.com/bPvkQ.png" border="0">

    So I'm using the Canvas plugin to draw lines that draw shadows, the question is - How can I specify a state while the player is between the shadow lines and how to specify another for when the player isn't between they. -

    Capx: Main Capx

    Event Sheet ScreenShot:

    <img src="http://i.imgur.com/PYO6a.png" border="0">

    • Thanks for helping :D
  • use a sprite that's is is always center on the player and the light source.

    width = distance(player, light)

    height = 20

    if the sprite "is overlapping; invert" shadow casting objects. Then kill player.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • use a sprite that's is is always center on the player and the light source.

    width = distance(player, light)

    height = 20

    if the sprite "is overlapping; invert" shadow casting objects. Then kill player.

    I didn't get what are you trying to explain.

    PD: Added a screenshot of the event sheet.

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