So I am decently new to Unity and C# scripting, but I want to take on a decently ambitious project. I got the idea from watching my friends play super smash bros melee. I want to combine the physics of the game (the higher the percentage, the farther and faster the player flies) and turn it into an FPS shooter where two or more players are equipped with an explosive launcher and percentages are dolled out via proximity. My first idea is to assign percentages to each player and use that to decide how far the player moves, but I have no clue on how exactly to go about it. Any suggestions would be helpful.
I would suggest not doing something like this first, maybe wait a month or two. I would suggest first doing a decent amount of tutorials, the ones on the unity site are very helpful. Starting off with something like this will just frustrate you and probably will go nowhere.
To answer your questions you would need to create a % (damage) float and increase it when hit. Then have an equation to assign the amount of force (in a vector 3) to propel you based on the % taken, then use that vector 3 and make that your velocity. There are probably many other ways to do this, but this will work if executed correctly.
But really, tutorials are super helpful. Modding them can also help you learn, and after a bit of hard work you should easily be able to create something like this.
RavenOfCode’s advice is very good.
Do tutorials or modding, or both.
And just remember, two months will pass so fast, you would not even know it’s gone.
But at the end of the day, you’ll be glad you spent those 2 months, learning all of that cool stuff you learned in tutorials,
or modding or both.
And I’m sure, I many others, look forward to seeing your game, as soon as you finish make it.
So take your time.
Good luck and many Blessings.