Skip to main content
Focusing on on-topic question
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

c++ text rpg input Time based events separate from userthe game loop

how do you change a string to all lowercase letters, but still be a string? i know tolower will take a char from a string and make sure its lowercase, but how do you put it back into the string , or a new one? i dont want to force the player to only type commands in lowercase. i want to be able to handle either or both as well.

also is there a way to setupHow can set up time elapsed based events separate from the game loop? i

I want the character to heal over real time rather than per cycle of the game loop. how How might i do that?

thanks

c++ text rpg input from user

how do you change a string to all lowercase letters, but still be a string? i know tolower will take a char from a string and make sure its lowercase, but how do you put it back into the string , or a new one? i dont want to force the player to only type commands in lowercase. i want to be able to handle either or both as well.

also is there a way to setup time elapsed based events separate from the game loop? i want the character to heal over real time rather than per cycle of the game loop. how might i do that?

thanks

Time based events separate from the game loop

How can set up time elapsed based events separate from the game loop?

I want the character to heal over real time rather than per cycle of the game loop. How might i do that?

Source Link

c++ text rpg input from user

how do you change a string to all lowercase letters, but still be a string? i know tolower will take a char from a string and make sure its lowercase, but how do you put it back into the string , or a new one? i dont want to force the player to only type commands in lowercase. i want to be able to handle either or both as well.

also is there a way to setup time elapsed based events separate from the game loop? i want the character to heal over real time rather than per cycle of the game loop. how might i do that?

thanks