Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: janet on August 04, 2018, 04:10:54 PM
-
Hi,
I am new here and try to make my 2D character move in unity. In play mode, I am able to store the vector variable, but my character doesn't seem to move at all.
I attached my settings here. Can someone help me?
Thanks.
-
I got vector3 variable from Get Axis Vector and Set Velocity 2D needs vector2. How can I mix them together?
Thanks.
-
I also tried Get Axis Vector, store the vector3 and then apply it on translate. It didn't work too.
For all the method above, I can get the vector3 and the vector3 changes when I press WSAD button on my keyboard. However, the character is just not moving when the vector3 changes.
-
If is a plataform game you can use the get xyz action to get x and z from the axis vector variable and them add the x and z float to the 2D velocity, if you just want to move the obj in x y and z just use the velocity action.
-
like this
-
and for a platform game is like this
-
Thanks for your help Ateam. It still doesn't work for me.
I don't have Get VelocityXYZ in my action browser and I don't find it in ecosystem too.
Instead, I use Get Velocity and Set Velocity because Set Velocity requires Rigidbody and not Regidbody 2D.
It appears to have the same issue. I can get the vector3 variable and it changes when I press or release the button. It does not get X, Y or Z individually and the character is not moving when I press the buttons.
I am confused now.
-
you don't need the get velocity action
-
In set velocity just put the Move variable
-
and you need deactivate the rigibody gravity.
-
Just made the changes.
I took a screenshot while pressing the button. The character is still not moving..
-
ohhh I see the problem, put the "set velocity" variables x and z in none, and them you need to deactivate the action Sequence, here
-
and all in none
-
Just did.
I can get the vector3 changing while press the key, but the character is not moving.
-
lol you have the rigibody in kinematic, deactivate that
-
It worked!
Thank you so much!!!
So why did the controller simple move not work?