Disabling the walk function

  • #1, by dos4gwSaturday, 22. February 2014, 23:34 6 years ago
    I'm looking for a way to lock my main character's movement, or remove the walk functionality of a command button for a time. I've scoured the forums and tutorials, and the only work around I've found has been to reduce the character's walk speed to zero, but the character will still walk in place in the direction I've clicked unless I change the outfit into something with only one static image. There must be an easier way to do this.

    Any help would be very much appreciated.

    Newbie

    69 Posts


  • #2, by marvelSunday, 23. February 2014, 01:09 6 years ago
    Please more details smile Why do you need this function? What are your exact plans?

    Key Killer

    598 Posts

  • #3, by afrlmeSunday, 23. February 2014, 01:13 6 years ago
    there is no official/simple way of achieving this....

    a few methods:
    1. if you intend the character to be placed in a static position, then you could draw a tiny 1px way border where the characters animation center position will be.

    2. another method could be to change to an outfit containing no images & replace the character position with an npc version of the playable character & turn off the center scroll position to character setting - I forgot what it's call, off the top of my head.

    3. you could create a character as a scene object with various animations etc...

    I think I will see if one of the devs would be willing to add a boolean option for disabling standard commands; meant to ask a little while ago but I forgot - will send Alex an email the morrow.

    Imperator

    6812 Posts

  • #4, by afrlmeSunday, 23. February 2014, 01:48 6 years ago
    @Thomas: there are probably plenty of reasons to prevent the character from walking to a new destination... here are a few reasons:

    1. the character is restrained in some way or other. you don't want the character to be able to walk but you still want it to be able to interact with certain objects in the scene.

    2. you don't want the character to walk to a new destination for whatever reason.

    3. you don't want to allow the player to set a new destination during an action sequence.

    Imperator

    6812 Posts

  • #5, by dos4gwSunday, 23. February 2014, 02:12 6 years ago
    Say you want the player to play a whack-a-mole game. You have the player click on the mallet to pick it up and start playing the game. The cursor changes into a mallet that you can then click on the moles that pop up. To stop playing, you have the player return the mallet to where it was.

    There's no reason for the player to walk off with the mallet (or maybe the mallet is chained to the game) so you'd want to disable the walk function until the player puts the mallet back.

    I did AFRLme's first suggestion and made a new way system to switch to with a 1 pixel area. This seems to work just fine! Still, an option to disable walking or make a walk-free command button would be very convenient.

    Thank you both for your replies!

    Newbie

    69 Posts

  • #6, by SavagemindMonday, 24. February 2014, 16:21 6 years ago
    You could change to an outfit without walk animations. smile

    Newbie

    6 Posts

  • #7, by afrlmeMonday, 24. February 2014, 17:06 6 years ago
    hmm I think the character animation changes to nothing but still moves to the new destination no?

    * edit: it uses the idle/standing animations instead.

    Imperator

    6812 Posts

Write post