playMaker

Author Topic: [Solved] Game auto pauses when reaching a max value?  (Read 1487 times)

invayne

  • Full Member
  • ***
  • Posts: 105
[Solved] Game auto pauses when reaching a max value?
« on: February 03, 2015, 07:54:29 AM »
I may be doing this wrong but i set up 2 float variables 1 called current health and one called max health. i have it set up in a system that tells weather or not the player is dead. for these to var's i do a float compare to tell them that current health is equal to the max health so that the current health will never go over the max health  but every time i reach 100 the game pauses. i set up a health tick that gives 10 health every second and as it reaches 100 the game pauses. ive even clamped the min an max values to the current health as well so im a little lost as to why this is happening.

any help would be greatly appreciated

i also get this error

Hero : Health : Loop count exceeded maximum: 1000 Default is 1000. Override in Fsm Inspector.
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry)
HutongGames.PlayMaker.FsmLog:Log(FsmLogType, String)
HutongGames.PlayMaker.FsmLog:LogError(String)
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:UpdateState(FsmState)
HutongGames.PlayMaker.Fsm:Update()
PlayMakerFSM:Update()
« Last Edit: February 03, 2015, 08:22:29 AM by invayne »

invayne

  • Full Member
  • ***
  • Posts: 105
Re: Game auto pauses when reaching a max value?
« Reply #1 on: February 03, 2015, 08:22:13 AM »
err nvm i got it working correctly i just separated everything so that it was in different fsm's and ended a few states and now it works flawlessly.