- Home /
What scripting language should I use for a multiplayer project?
Hi guys!
I want to make a game, not something fancy for the begining, so I have thinking to create an online map based batlle oriented game, where lets say 15-20 people enter a map in 2 teams and accomplish an objective like capture the base or something.
So the question is what scripting language should I use, to be familiar when I am switching from singleplayer project to the multiplayer one, and when I need to create the serverside engine.
NOTE: I want to use the same type of language both on clientside and serverside to be more easy to overcome compilation issues or bugs.
Thanks a lot!
Is this your first project? Stop, and rethink your game right now. You will fail. I'm not being negative, I'm being realistic. Your project scope is way too over-ambitious given that you apparently have little knowledge of program$$anonymous$$g languages.
Start with a single-player, one-level game. Learn how Unity works. Learn to get player input, display stuff on the screen, switch between game states (like a start menu, pause, in-game, and high-score screen), play some sound effects. Finish the game. Then make another game. Repeat this several times.
If you're still feeling confident after that, revisit this question.
C# I think is better. There's no difference between serverside engine and clientside engine - it's the same project with different logic rules for client vs server. If you are looking for already code done for a project very closed to your kind of game, see FPShootNet on Asset Store.
I think what tanoshimi says is the opposite of what i think, even if you manage to make a failed game, from failure leads succes, You should use the script language you prefer to write in since there's a slight till no diffrence between them. http://forum.unity3d.com/threads/193558-C-vs-Javascript my preference goes to C# since it litterly does what you wrote and else it will give an error.
Answer by HappyMoo · Jan 07, 2014 at 04:08 PM
Use C#. That's what is native to Mono - the technology driving Unity behind the curtains.
UnityScript/Javascript gets painful after a while, because you can't fully unleash the more powerful features of the mono platform like Generics etc.
Other than that, Tanoshimi is dead right. Don't think about your own game before you understanding everything that is in:
http://unity3d.com/learn/tutorials/modules and http://unity3d.com/learn/tutorials/projects
Play with everything that is offered there. Understand and customize it, then you can think about making something of your own. And Multiplayer is not simply the same as two times Singleplayer. Don't try it before you understand yourself why it's hard.
Also, I want to add: try to learn what you need to make the game yourself - there are enough resources around the Internet.
Don't copy and paste a script you barely understand into your next question and expect someone to make your game.
I'm not saying you'll be like that, but this happens too often and everyone is tired of it.
Thanks for your answer. It was really helpfull. I admit that I am new to all this stuff but I try to learn and only after that I will be working on my game.
But I have asked this beacause it's a huge $$anonymous$$dblown if you try to learn something and focuse on it for some time and after working 1 or 2 months on the game you realize that for some reason you will have to start all over just because you can't do something, or you will have to modify a lot because of the scripting language.
Your answer
Follow this Question
Related Questions
C# Networking help? 1 Answer
Distribute terrain in zones 3 Answers
Converting js project to c# - replacing script references 1 Answer
Make a game in C# 0 Answers
Multiple Cars not working 1 Answer