So I sort of understand I need an ini file, but I don't know how to make a box in which the player can type their name and it goes into the ini file and then it is displayed during the game and when they re-open the game it can be pulled up and say "Hi Cathy." I know that's a lot to ask, thanks in advance!
how to create box for player to type in "player name" and save
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
You can use an Editbox for player text entry. Then save that string to the ini file AND a global string. Then just use the global string when you need the name that was typed. If the player quits and restarts the program, load the global string from the ini.
-
For the text entry you could also make a custom text input box(the Editbox window is nothing I would call nice graphics) and you could load the name from your Ini into an empty String. I will make a simple example with Ini object tomorrow when I have some time.
-
Iam working some feature like this, but edit box object look buggy on some android device. Where i found the "custom text input box"?
-
No, what I mean is you could create your own name input , something that works like the name entry system in Zelda for example.
-
Yes i would like to know about custom text input box. Would you like to give us very simple example for this?
I mean about to make custom text box. -
Alright, here is a simple example:
-
The OP is asking for a system they can TYPE the string into the box. The best way I can think of is to have an editbox offscreen or invisible and a "fake" editbox that is just an active object the user see. When you click on your "fake" active object text box, you enable the editbox. So the user is actually typing in the editbox. Then you take the contents of the editbox, put it in a Global String, and display a string (or whatever text display you use) on your fake active object box.
-
Hi
I have made an example where you can type your name, save it to an INI file and then load it to show the user the name they chose next time they open the game.
I have also made a custom edit box. I did it the same way as mobichan suggested, by using a hidden edit box object. -
Wow, great information and discussion. Thanks! Decal that example was super helpful. I will have to spend some time studying it to completely understand it but I appreciate it. Thanks for all the help everyone!
-
Thank you very much for this. Trying to learn clickteam fusion, very hard for the first time like me
-
To be fair this is not beginner level stuff. But it is a handy trick to have in your arsenal.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!