Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: MatiasHarder on August 24, 2017, 11:21:26 AM
-
In a 2D game how can i make the character move to the right a frame every time i press N?
example:
I press the N key and my character will move to the right a box (As in games 2d) and if I press 3 times this will move 3 times to the right.
Besides this how can I change the speed of movement?
If you can guide me with this I would be very grateful.
-
Hi,
you mean you have a grid, and your player can only move one unit at a time right?
so you press n, player moves one unit, press n again, one more unit.
am I correct?
Bye,
Jean
-
yes, If to that same I mean .. I would like to know how to do that for a game type rpg 2d..
You know how to do it?
-
Hi,
you can do something like :
when n is pressed : "Get Postion"
then add 1 or deduct 1 (depending if you go left or right) to the X postition
then use set position (you can use a tweet or ease float/vector2/vector3 to move smoothly) the amount to add/deduct depends on your setup