Tutorial|Username System

Post your own tutorials, guides and demos.

Post » Sat Oct 07, 2017 2:37 pm

Today i'm going to show you how to create a username system for your game!

Tutorial Difficulty:Beginner-Anyone can do it
_______________________________________________________________________________________________________________
Step 1:
So first of all you want to create a textbox or something where the player can put in the username of choice (if you know how to add some styling to the text box you can do it)
_______________________________________________________________________________________________________________
Step 2:
Now create a global variable and call it something you can remember for later!

Set the variable settings to the following:

Name:(Choose your own)

Type:Text

Inital Value:(Leave Blank)

Description:Used for username storage
________________________________________________________________________________________________________________
Step 3:
Now you have that done if you have a save and load system the variable will save and load all you have to do is if you want to display the username anywhere in your game just do the following:

Create an condition\System\On start of layout\(Text that you want)\set text\"Welcome "& SC_Account &" To the Space Connect screen"
Although you would change SC_Account to the name of the variable you created and change the text to your own!
_________________________________________________________________________________________________________________

Of course you can do so much more than just set the text to display the username but that's for another tutorial.Anyways if you found this helpful then please share the post with the community and your freinds Peace Out!!
B
5
Posts: 9
Reputation: 372

Post » Sat Oct 07, 2017 3:43 pm

@GuitarStuffz

Wrong section again, I'm afraid.

This is for the - now retired - Construct Classic program.

The Tutorial section I was referring to was linked in my post, i.e. here:https://www.scirra.com/tutorials.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,557
Reputation: 60,458

Post » Sat Oct 07, 2017 7:24 pm

Can you delete both the threads for me
B
5
Posts: 9
Reputation: 372


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 2 guests