playMaker

Author Topic: How do I create a lever that can push and pull the lever?  (Read 472 times)

kimj224

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
How do I create a lever that can push and pull the lever?
« on: May 04, 2017, 02:14:04 AM »
Hi.


I want to make the character push and pull the lever. I need help to make a system that pulls levers naturally as you move left and right. Anyone would be grateful for your help.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4611
    • View Profile
    • jinxtergames
Re: How do I create a lever that can push and pull the lever?
« Reply #1 on: May 04, 2017, 06:08:19 AM »
Hi,
I am not exactly sure what you mean but here goes :)

Make 2 child object on your lever with a collider, set is trigger when needed and place them on each side (one left, one right)
then use "trigger events"
This way you know which side of the lever is touched.

If you want to learn more about playmaker,
you can find several tutorials here and be sure to check out the user tutorial wiki page