playMaker

Author Topic: Freeze Character Position or Input during a state  (Read 4711 times)

BowDown2Anthony

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Freeze Character Position or Input during a state
« on: September 16, 2013, 12:52:46 PM »
Hello everyone!

I apologize if this is a basic/remedial question, I have only been using Unity/Playmaker for a few months:

I want to freeze my Character's movement during a few different states, any idea on how I can do this? I have searched the forums but have not had any luck on finding how to temporary disable/block player input. Currently, I have been creating/destroying a box collider that spawns around the player- but it is a sloppy method.

Looking forward to your help!

Thanks

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • View Profile
    • Blog
Re: Freeze Character Position or Input during a state
« Reply #1 on: September 16, 2013, 12:59:22 PM »
Is your character using input movement from Playmaker?
If so you just new to create a new state called Stopped state and leave it empty of input actions.
Cheers
Seb

BowDown2Anthony

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Freeze Character Position or Input during a state
« Reply #2 on: September 17, 2013, 06:55:58 PM »
Unfortunately, the character isn't using playmaker for movement. The character input is currently set via a touchscreen/wsad controller. 

BowDown2Anthony

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Freeze Character Position or Input during a state
« Reply #3 on: September 18, 2013, 10:25:40 AM »
bump

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • View Profile
    • Blog
Re: Freeze Character Position or Input during a state
« Reply #4 on: September 18, 2013, 03:39:35 PM »
You could try disable your character controller/ rigidbody or your movement script.
Do you get my idea?
You have the checker made in Playmaker and once it´s just disable your component.
Cheers
Seb

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • Yup.
    • View Profile
    • Cleverous
Re: Freeze Character Position or Input during a state
« Reply #5 on: September 18, 2013, 03:59:31 PM »
Can you code a bit? You could just add an empty method and invoke it from playmaker to stop the controller script from doing anything, then invoke another the awake method to restart the script.

Could work.. I think.... Maybe..

BowDown2Anthony

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: Freeze Character Position or Input during a state
« Reply #6 on: September 19, 2013, 07:18:18 AM »
I don't have any coding knowledge/experience. Would anyone like to help me add this function to my game? I'm willing to pay a little bit to get this finished.. Ideally, i just want an action or state that will disable the player's input/movement during dialogue.

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • View Profile
    • Blog
Re: Freeze Character Position or Input during a state
« Reply #7 on: September 19, 2013, 08:58:33 AM »
Man if you could try disable your movement script that could help you a lot.