How to position shadow on the jump in beat'en up game

0 favourites
  • 5 posts
From the Asset Store
professionally animations with Brashmonkey Spriter !
  • http://metroidvania-beat-en-up.bitballoon.com/

    My project mixes elements of platform games and beat'en Up!

    I am leaving a link with a sample of the gameplay where it is possible to see problems in the position of the shadow when the player jumps to a higher platform. How to create an algorithm that controls the position of the shadow in the layout, even during the jump.

    If you hit backspace you'll be able to see the collision objects I'm using to control the girl.

    The orange object contains the platform behavior. Controls the character's collision with the terrain and walls. The shadow black circle follows the X coordinates of the orange object, and controls the Y position of the character when the platform object is on the ground. The red object serves only as a collision box.

    Controls

    Directional arrows and the W, S, A, D keys move the character

    Spacebar to jump

    E key to fast forward

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is the shadow formula :

  • Here is the shadow formula :

    Hello again friend, always help me

    I guess the way I'm programming, what you suggested does not apply. Or I misunderstand your events.

    My idea was to use the points of origin in the platform object to delimit the position of the shadow. In addition to controlling the Y position. When the orange object lands on the jump, it updates the values ??based on the point of origin, I believe that here is the problem. But I can not imagine a solution.

  • When you jump up the shadow should remain on the floor but gets smaller the higher the player jumps and gets bigger as player falls back to the floor.

    You can use Size to resize the shadow.

  • Then take my bombamen prototype: https://dl.dropboxusercontent.com/u/659 ... _back.capx

    [ press Ctrl to jump ]

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