User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: how to create box for player to type in "player name" and save

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Aug 2016
    Location
    Utah, USA
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to create box for player to type in "player name" and save

    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!

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    nikosurfing's Avatar
    Join Date
    Nov 2015
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Iam working some feature like this, but edit box object look buggy on some android device. Where i found the "custom text input box"?

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    No, what I mean is you could create your own name input , something that works like the name entry system in Zelda for example.

  6. #6
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    nikosurfing's Avatar
    Join Date
    Nov 2015
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Alright, here is a simple example:
    Attached files Attached files

  8. #8
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)
    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.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Attached files Attached files

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Aug 2016
    Location
    Utah, USA
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 26th October 2015, 02:53 AM
  2. Replies: 3
    Last Post: 6th August 2015, 08:02 PM
  3. path movement player/object "bouncing"
    By CRKFIEND in forum Fusion 2.5
    Replies: 0
    Last Post: 29th December 2014, 01:06 AM
  4. RE: Condition "Can player purchase game?"
    By cfullerNY in forum XNA Export Module Version 2.0
    Replies: 12
    Last Post: 10th June 2012, 04:54 PM
  5. Flash® Player "fixes" links
    By RayMarble in forum SWF/Flash Export Module Version 2.0
    Replies: 11
    Last Post: 18th January 2011, 07:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •