Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: BowDown2Anthony on September 16, 2013, 03:52:46 PM

Title: Freeze Character Position or Input during a state
Post by: BowDown2Anthony on September 16, 2013, 03: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
Title: Re: Freeze Character Position or Input during a state
Post by: Dev_Sebas on September 16, 2013, 03: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
Title: Re: Freeze Character Position or Input during a state
Post by: BowDown2Anthony on September 17, 2013, 09:55:58 PM
Unfortunately, the character isn't using playmaker for movement. The character input is currently set via a touchscreen/wsad controller. 
Title: Re: Freeze Character Position or Input during a state
Post by: BowDown2Anthony on September 18, 2013, 01:25:40 PM
bump
Title: Re: Freeze Character Position or Input during a state
Post by: Dev_Sebas on September 18, 2013, 06: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
Title: Re: Freeze Character Position or Input during a state
Post by: Lane on September 18, 2013, 06: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..
Title: Re: Freeze Character Position or Input during a state
Post by: BowDown2Anthony on September 19, 2013, 10: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.
Title: Re: Freeze Character Position or Input during a state
Post by: Dev_Sebas on September 19, 2013, 11:58:33 AM
Man if you could try disable your movement script that could help you a lot.