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.

Input number

I'm thinking of making some kind of banking system, but I need to know how to input numbers. The logical thing to do was look at Window_InputNumber, but I can't find out what the 'outcome' of the input is. I mean, when the person has chosen their amount (Say, 300), what part of it determins what 300 is represented as?

Thanks

~Skyline
 
Well, you could define @number as $input_number (extended the name to prevent double naming of global variables). Now being a global variable, you can refer to it everywhere. You need to pay attention though, it'll take additional CPU and you should also check if $input_number != nil before doing anything with it to prevent errors.
 
I have that bit covered, thanks :)

How would I call the Window_InputNumber? Because when I call it as a window it desn't work ':| I'd have thought it should have been a scene.
 
You can call it by event commands ingame or by setting as to a window in the conspirative class and setting it to active... you can view Sharks or my (link in signature) Window tutorial for learning how to do that...
 

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