[Solved] Adjusting Game Speed with an Input Text Variable in GDevelop

Hello GDevelop Community,

I’m currently working on a project and I’ve encountered a challenge. I want to allow the player to adjust the speed of the game by typing a number into an input text field. This number should then be used to set the world time scale of a certain object and the time scale of the scene.

I’ve tried a few different approaches, but I’m still having trouble implementing this functionality. I would appreciate any guidance or suggestions on how to correctly adjust the game speed using an input text variable in GDevelop.

Thank you in advance for your help!

Hello @GameOn,

Try this:

1 Like

Hello @insein ,

Thank you for your suggestion. I tried it, but I encountered an error message saying “You must enter a number or a valid expression call.” Any help would be greatly appreciated.

Remove the “=” at the beginning of the expression.

1 Like

Thank you for your patience and guidance. I can’t believe I missed such a simple thing! I removed the “=” at the beginning of the expression and it worked perfectly. :sweat_smile:

No worries! Glad i was able to help.

1 Like