Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ffffffffff on April 20, 2020, 07:33:11 AM
-
so i use playmaker to make a dash thing turn out fine until the player can dash through wall pls i need help i use translate
-
Did you added colliders?
-
Hi.
Translate does not use physics.
Use set velocity (and have a rigidbody2d) or use raycasts and stop translation.
But with fast moving raycast might fail.
-
i do like you said it work a bit but the player can only dash in 1 direction so how do i make the player to dash left and right
-
Hi.
you can set a negative velocity as well
so 1st detect what direction the player is (depending on how you do this, scale/sprite flip/rotate)
then for the negative value you can set manual OR do a float operator and multiply by -1
-
so which action should i use to detect the player movement
-
Hi
how are you moving the player?
and how are you flipping the player?
For example if you use scale, then get the x scale and check if greater or less than 0.
if you use rotation get the rotation and compare if 0 or not
if you use sprite flip then get that value and check the bool.
-
I use scale but the point is i don't know which action to check .like set up a bool or add force,etc
-
Hi.
Get Scale, Then Float compare
if less than 0 do force left/right
if greater than 0 do force in the other direction
-
could you make an example for me. i dont know how to use get scale
-
so this is my FSM it dont work . am i miss order them. pls help
-
thank a lot .
-
So far i made the dash work . But i can only dash in mid air .i want to dash while on the ground as well . What should I do.Again thank for helping me