Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

RTAB if statement being strange

In RTAB on around line 2815 or so under...
# First on-target hit decision

I have

if self.states == 18
blah blah
end

It wouldn't do anything in the if statement, so I tried all sorts of stuff like putting self.states into it's own variable, to_s, to_i. (though i'm obviously less than novice at coding) I even did
print self.states right before
and it prints 18! I don't know what to do. Please help.
Let me know if you need the full code or a demo/the game itself.
-K
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top