playMaker

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

kimj224

  • Playmaker Newbie
  • *
  • Posts: 6
How do I create a lever that can push and pull the lever?
« on: May 04, 2017, 05: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: 7614
    • jinxtergames
Re: How do I create a lever that can push and pull the lever?
« Reply #1 on: May 04, 2017, 09: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