playMaker

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

HeathClose

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Int Add 1 is adding 2
« on: March 04, 2017, 11:22:58 AM »
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...


https://youtu.be/boEQp__P2Jg

Maximilian0

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: Int Add 1 is adding 2
« Reply #1 on: March 04, 2017, 04: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: 13891
  • Official Playmaker Support
    • View Profile
Re: Int Add 1 is adding 2
« Reply #2 on: March 05, 2017, 10:47:58 PM »
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: 32
    • View Profile
Re: Int Add 1 is adding 2
« Reply #3 on: May 07, 2018, 10:02:56 PM »
Was this issue ever resolved? I've started seeing the same behaviour in one of my FSMs (which was previously working fine!).

Athin

  • Junior Playmaker
  • **
  • Posts: 91
    • View Profile
Re: Int Add 1 is adding 2
« Reply #4 on: May 08, 2018, 05: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.