playMaker

Author Topic: Smartest Way to Pause Enemies When Player is in Menus?  (Read 989 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Smartest Way to Pause Enemies When Player is in Menus?
« on: July 14, 2018, 06:01:57 AM »
Hello. That's my question. I know I can have the enemy fsm have an "activate" event and a "deactivate event" with nothing in it, and call them as needed.

But I also need the enemy's animation to freeze.

For example, if an enemy jumps toward you, mid-attack, and you pause the game, how do we pause that enemy mid-attack in the air, only to instantly resume upon unpause?

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Smartest Way to Pause Enemies When Player is in Menus?
« Reply #1 on: July 14, 2018, 07:46:22 AM »
Set time scale to zero? UI doesn't depend on time as far as i know, at least i'm managing it like that and everything works fine.
Available for Playmaker work