playMaker

Author Topic: Need to know how to build pulling and pushing objects for puzzle game.  (Read 841 times)

Janitha Bimsara

  • Playmaker Newbie
  • *
  • Posts: 2
Hi, I'm new to playmaker and I’m developing a puzzle game(3d platformer). I want to make, when player go near to cube and press key, player can push object forward and backward. Can anyone give me an idea of how to do this.?

cel

  • Full Member
  • ***
  • Posts: 132
you could make the cube a child of the player and restrict the player movement to forward and back. So on press key, attach cube to player and restrict the players movement.

Another way is to apply a force on the cube... example player enters trigger (on the cube) if player presses forward apply force on the z positive axis, if player presses back apply force on the z negative axis (or whatever axis is used for forward)