playMaker

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

westingtyler

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • My Oculus Rift + Touch VR Game Using Playmaker
Smartest Way to Pause Enemies When Player is in Menus?
« on: July 14, 2018, 03: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?

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 830
    • View Profile
    • Fat Pug Studio
Re: Smartest Way to Pause Enemies When Player is in Menus?
« Reply #1 on: July 14, 2018, 04: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.