playMaker

Author Topic: Convert String to Int not working (IS THIS A BUG?)  (Read 6799 times)

krane

  • Junior Playmaker
  • **
  • Posts: 63
Re: Convert String to Int not working (IS THIS A BUG?)
« Reply #15 on: February 06, 2017, 08:24:43 AM »
I added the next frame at the recommendation of people upthread
The -1 was because I was storing the items in an array, and the array starts at 0 whereas my scene #s start at 1. So, I subtract one to get the array number. But the problem is that it's the being stored in the array as -1, not as 0.

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Convert String to Int not working (IS THIS A BUG?)
« Reply #16 on: February 06, 2017, 08:30:56 AM »
stop the whole game logic right at the convert string to int and see if its doing a proper conversion

if it is, than the problem is somewhere else
note that the variable value you see is the current one, not the resulting one from the operation