playMaker

Author Topic: loop count exceeded maximum: 1000 default is 1000. Override in FSM [SOLVED]  (Read 5993 times)

eotiti

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
Hi guy
i have 2 state
state 1 i use " mouse pick event  "
state 2 i use "add force "
i connect 2 this state together
but when i play it show this error : "loop count exceeded maximum: 1000 default is 1000. Override in FSM inspector "
so how to fix it ?

sorry i just beginer!
« Last Edit: March 01, 2014, 08:27:19 PM by eotiti »

eotiti

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
anyone ???

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3201
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Return to State 1 using the Next Frame Event.

Playmaker tries to complete all events in a single update so you can chain lots of actions together. But this can create infinite loops. Generally you can use Next Frame Event to break out of an infinite loop.

Does that make sense? This should probably be on a FAQ or in Getting Started somewhere since it comes up quite a bit...

EDIT: I've added an Infinite Loop note to this page on the wiki:
https://hutonggames.fogbugz.com/default.asp?W128
« Last Edit: March 01, 2014, 01:12:02 PM by Alex Chouls »

eotiti

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
oh yea thank ! Alex Chouls