Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - maxrostov

Pages: [1]
PlayMaker Help / 2D player knockback (when hit by an enemy) [SOLVED]
« on: November 10, 2020, 01:40:01 PM »
I've created a state in which the player enters if hit by an enemy.

The state is suppose to make the enemy push the player away from himself.

Currently the player does get pushed back when the enemy attacks from the left.
But when the enemy attacks from the right, the player gets pushed INTO the enemy instead.

I guess i'm using the "Vector3 Invert" in a wrong way.

Does anyone know why that is?

Thank you in advance!  :)

PlayMaker Help / Bool test not working
« on: October 19, 2020, 12:31:17 PM »
I've set a Bool Test "isGrounded" in my jump state.

If True, it transitions to the next event. (if False, it stays in the state).

This to make the player unable to "double jump".

But my bool test gets ignored by the FSM (it transitions to the next state, even if Bool is False).

Has anyone experienced this before?

Here's a screenshot:

PlayMaker Help / 2D character crouching[SOLVED]
« on: October 13, 2020, 11:40:05 PM »
I'm trying to make my 2D player to crouch when holding down key.


Action trigger (Playmaker)

Crouch components (Playmaker)

Basically, I want the player to crouch when holding down the "down-key". And when releasing, to stop crouching.

Animation: To play crouch animation when holding down key. And play Idle animation when releasing.

Physics: The player has two colliders, Circle Collider 2D and Box Collider 2D.
On holding down the down-key, the Box Collider get disabled (the top part).
I want to enable it again upon releasing the key - which it doesn't.

The crouch animation also does not stop upon releasing the key.

So my question is, how to get the character back to the initial state upon releasing the key?

Thank you for all your help in advance  ;D

Pages: [1]