playMaker

Author Topic: Using playmaker for left and right 2D movement.  (Read 1592 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Using playmaker for left and right 2D movement.
« on: June 09, 2014, 06:27:59 PM »
Is there a way to restrict movement in playmaker to only A and D buttons instead of rewriting character controller and motor scripts?  Because I am setting up a 2d game and when I press W the player goes through the background even when it has collision.


ghost010

  • Junior Playmaker
  • **
  • Posts: 51
Re: Using playmaker for left and right 2D movement.
« Reply #1 on: June 09, 2014, 07:44:14 PM »
Add a scharacter controller(not script but the physic one) and add a fsm that listens to horizontal or to cartain buttons.like get key down. Key D. Add force x1(or something like that.for A id use x-1.)but im not at my pc so this is just a big guess... I should be slerping now..