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.

rm2k inserting single digits into multi digit numbers

Injury

Awesome Bro

I know rm2k is an old system but I'm working on something fun anyways...

I have been able to break down multiple digit numbers into single digits, kind of a small array, but I want to know if there is a viable way to put the digits back into another variable...example:

I have a 5 digit number holding levels for 1-10 items. Say I have 12345. I can break it down to the 2 by itself into a variable or any other single number. I want to change the value of the variable and put the number back together (ie 2 to a 4 back into 12345 to make it 14245).

Would I invert the process or what?

thanks
 

Injury

Awesome Bro

IT WORKS THANK YOU AHHHHHHHHHH finally!

I've been waiting for this for a while! This is going to make this game a lot easier to work on now that I have this.


Just got to work out some things and I'll let you know! YOUR GETTING CREDITS YOU HUGGING MONSTER!
 

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