playMaker

Author Topic: Int Add 1 is adding 2  (Read 2215 times)

HeathClose

  • Full Member
  • ***
  • Posts: 226
Int Add 1 is adding 2
« 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...




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




Maxi

  • Playmaker Newbie
  • *
  • Posts: 41
Re: Int Add 1 is adding 2
« Reply #1 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!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Int Add 1 is adding 2
« Reply #2 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

BDFgames

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Int Add 1 is adding 2
« Reply #3 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!).

Athin

  • Full Member
  • ***
  • Posts: 163
Re: Int Add 1 is adding 2
« Reply #4 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.