Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: HeathClose on March 04, 2017, 01:22:58 PM

Title: Int Add 1 is adding 2
Post by: HeathClose on March 04, 2017, 01:22:58 PM
here you can see I have an int add... it is the only instance of int add in the game as I have just started prototyping...

(https://www.dropbox.com/s/wavzlcwlylxpl07/Screenshot%202017-03-04%2011.50.55.png?dl=1)


but it's adding 2 every time... check out this video of it in action...



Title: Re: Int Add 1 is adding 2
Post by: Maxi on March 04, 2017, 06:13:30 PM
Hi,

I don't know the solution to your problem but it would most likely be helpful to see all the other states in the video.

Also, I didnt realize breakpoints existed until your video, so thanks for that!
Title: Re: Int Add 1 is adding 2
Post by: jeanfabre on March 06, 2017, 12:47:58 AM
Hi,

 yep, and put a breakpoint on that state, and run the scene, you'll see then what's going on and you can step back on the second break to see where it comes from. Open the Fsm log to see the full stack.

 Bye,

 Jean
Title: Re: Int Add 1 is adding 2
Post by: BDFgames on May 08, 2018, 01:02:56 AM
Was this issue ever resolved? I've started seeing the same behaviour in one of my FSMs (which was previously working fine!).
Title: Re: Int Add 1 is adding 2
Post by: Athin on May 08, 2018, 08:16:43 AM
Can only really guess at the problem with what I can see in that video.  To me it seems like that loop is maybe firing twice per spin?  You wouldn't be able to spot it with the break since well....it stops it from firing twice but I'd definitly look into that first state and see if that is triggering twice.