horntx's Forum Posts

  • 7 posts
  • Ok thanks you two!

  • you can also use int(33.4) and then to go back str(whatever int)

  • that would work but is there a way that doesn't involve a global variable for each box, at this point I probably have hundreds

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Really I was messing with that but it didn't seem to work... I guess I will keep messing with it

  • I am making a RPG and I want the user to type into text boxes, After that I want them to go to another screen but be able to have the same boxes with the numbers they previously entered saved and on top of that be able to still type in them. Any method which would avoid me having to type a line of code for every box would be prefered but that's highly unrealistic. I am aware I could just have the text box setting its text to it's own text,

    eg system, every tick | set text (Textbox1) | Textbox1.text

    but that may cause problems allowing both text boxes to be typed in I want the first textbox to be typed in while on the first screen then the second instance to be typed in after that and the first one doesn't matter.

    TL:DR A your lazy its two paragraphs but I want to have a textbox keep its text through layouts

  • R0J0hound Thanks that makes sense, it wasn't an error with addition it was saying the text box can't accept integers. I never would have guessed that, Thanks so much!

  • I am working on an RPG and I want the user to type numbers into text boxes and then I want to add those numbers. Is there a way to do this?

    Things I have tried:

    1.using float()

    2.using int()

    3.using both int(float())

    4.just straight adding the values

    5.Screaming at my computer

    All of them but the last one created an error basically telling me that strings aren't integers. If you have any ideas I would be happy to hear them .

  • 7 posts