Problem with spotlight effect (on player death)...

  • Greetings!

    I'm new to Construct 2 and have a problem with spotlight effect (black background, white spot, destination out...)

    Everything is OK (spotlight follows player, sounds are good...) until my player dies! All I have is black screen (spotlight goes to top left position?!) until Lvl restart...

    When I delete layer with spotlight I can see that everything goes as planned. So... problem is how to fix spotlight to player position even on his death (so we can see death animation) until Lvl restart.

    Event sheet:

    ibb.co/gEsPG8

    Any ideas?

    Tnx!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You used 'set position' instead of 'set position to another object'. This should solve the problem. After player death the coordinates return to 0,0. If you want to keep it like this, you need to add another condition beside 'every tick', for example 'Player is on-screen'.

  • Thank you!

    "Set position to another object" fixed everything.

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