- Home /
Can accounts for my game be connected to my website
hi, im making a video game called kianate, and i have a domain name for it, however i was wondering if i could make it so.... if someone signed up on my website, they could then sign in, with that same account, in the game. is this possible, because i think ive seen it before, and if so, how might i do it.
Note: I removed the url to your actual website / domain since it's irrelevant for the question and is considered advertisement otherwise.
Answer by $$anonymous$$ · May 26, 2019 at 02:58 AM
While I can't give you the code (too long, no one will do it for free) I can tell you how, though I am not very experienced in server/database stuff.
first, you need to establish a database using MySQL(or any other database scripting language) so you can store all the information about the user. Second from what I understand, you want the registration from the website, so in your website make a "Register" page and in that page make fields that the visitor can write their info in (name, age, gender, etc..) and make a "register" button so you can send the information from the fields to the database. Third, in your game make a sign in page where you retrieve the information from the database to the game and based on that information from the database, the game is changed (if you paid for a sword in the website, there will be a sword in the game).
if you don't know how to do this, there are lots of tutorials on youtube... and there are lots of sitebuilding website (wix or wordpress(plus plugins)) that can make this easier.
@$$anonymous$$ weather I gave it pay or not, can you suggest any thinks, websites, or other kind of resource that I may be able to view or purchase, so that I could use that code, or edit something similar?
may I ask how experienced are you in unity and what is your game about?
im not that expirenced. my game is suppost to be a space exploration game. im on the singleplayer stage, and i plan to adapt it to multiplayer later. i attempt to self $$anonymous$$ch myself using youtube, udemy, or other tools i can find.
Answer by Bunny83 · May 25, 2019 at 12:14 PM
Sorry but the question is what is that account good for? What do you actually want to do with those accounts? Also do you want to have an account being optional or mandatory for your users to play your game?
Next thing is where do you actually want to publish your game? Is it a WebGL, standalone or mobile game?
In general, of course it's possible to create a user / account system on your website and have your users sign in using their account. Though you should be aware of your duties when it comes to privacy and security when you store any kind of user data on your side. (If you have never thought about that yet this is a mandatory video)
If you asked this question in an attempt to get an answer which provides you with all the necessary serverside and client side code that is ready to use, you are in the wrong corner of the internet. The only keywords I can give you are:
Serverside:
- PHP
- MySQL database (or something similar)
Clientside (Unity):
- UnityWebRequest
- UI system
General topics:
- HTTP and HTTPS
- SSL certificate
- webhosting in general
@Bunny83 i am trying ti publish it as app to windows, and maybe mac in the future, for example in an exe file, and the account would be required. Using plugins and features, i could use the account to help save data across multiple devices, or setup a paid membership, similar to how $$anonymous$$ecraft works in its pc accounts
Your answer
Follow this Question
Related Questions
how to make a charecter controller 1 Answer
How to claim a legacy account if you can't remember the old email? 0 Answers
How to use already existing user credentials from my website as my applications login? 1 Answer
mmo/server question.. 2 Answers
Disable Two Factor Authentication without the SMS access? 0 Answers