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

Get help using Construct 2

Post » Sun Mar 12, 2017 3:46 pm

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
B
21
S
5
Posts: 59
Reputation: 1,283

Post » Sun Mar 12, 2017 6:55 pm

Here is the shadow formula : Image
ImageImage
B
111
S
51
G
24
Posts: 787
Reputation: 23,394

Post » Sun Mar 12, 2017 11:54 pm

alextro wrote:Here is the shadow formula : Image


Hello again friend, always help me

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

Image

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.

Image
B
21
S
5
Posts: 59
Reputation: 1,283

Post » Mon Mar 13, 2017 4:42 am

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.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825

Post » Mon Mar 13, 2017 6:33 am

Then take my bombamen prototype: https://dl.dropboxusercontent.com/u/659 ... _back.capx
[ press Ctrl to jump ]
ImageImage
B
111
S
51
G
24
Posts: 787
Reputation: 23,394


Return to How do I....?

Who is online

Users browsing this forum: banquetburger and 49 guests