Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Player needs to stop moving :P [resolved]

Hi. I was wondering if anyone could point me to, or create a script that would freeze the player in their spot via a switch or variable, and once the switch or variable was reset, the player would be able to move again.

I tried searching but I didn't find anything like what I want...

Thanx
FenixFyreX
 
Do a "Set Move Route" on the player. You don't need any movement commands, but you do need to set "Repeat Action"
To turn it off, do another empty "Set Move Route" command with "Repeat Action" unchecked.
 
Any event on Autorun will do, too.
Set its page condition to a switch and at the bottom mark Autorun. The player can't move while the event is active. Do your cutscene or whatever in that event and at the last line, set the switch OFF.
 
@Silver Wind Thanks. Your method fixed my problem.

@Brewmeister When I use your method, all actions after it cease to continue. In other words, whatever is happening after the Set Move Route: Player, Repeat Action stops working. But thanks anyway :P

This topic is solved, whoever needs to know.
 

Star

Sponsor

Sometimes you need to use Parallel Processes. So Autorun will not always work in certain cases. Therefore like brewmeister said. Set Move Route: Player, Move Towards Player will freeze the player. To undo this, after event is finished Set Move Route: Player, Turn in any direction, (Most likely the direction that the player was originally in would be fine.)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top