1.What do you want to archive? I want to make a football game like FIFA where the player can control their whole team and command them to kick, pass, etc…
What is the issue? I do not know how to make one, I can not find any tutorial about it, all the information I have is very limited
What solutions have you tried so far? I searched this on both youtube and devforum but I didn’t found anything that could help me make the game
Sorry for my bad grammar, Please give me some tips if you can I really appreciate our tips
You will most likely not find any tutorial on it. If you don’t know how to script, you should learn about it, because you won’t make any game without proper knowledge of scripting. It’s going to take a long time before you can make this game if you don’t know much.
I don’t think you’ll find any tutorials on how to make a game like FIFA in here.
The most I can give you at the moment are just verbal references for you to work with.
To start, you said player can control the whole team, for you to be able to do this you’re going to have to get closest players in order to be able to pass off control when a key is clicked, this can be done using magnitude very easily.
You are going to have trouble setting all the remotes that you need to pass on local events to the server and vice versa if you’re a beginner programmer. I would say just practice doing smaller things like learning about magnitudes and stuff so you can get it done one by one. The wiki is very helpful, but if you have any questions you can just ask here.
A test code, which will most likely not work and you’ll have to change is
function ClosestPlayer()
local rootPart = fakeCharacter:FindFirstChild("HumanoidRootPart")
local newCharacter
for i,v in pairs(fakeCharacter) do
if v ~= currentCharacter and v:FindFirstChild("HumanoidRootPart") then
local targetCharacter = v.HumanoidRootPart
local magnitude = (currentCharacter.HumanoidRootPart.Position - targetCharacter.Position).magnitude
if magnitude < distanceYouWant or the other characters then
newCharacter = v
end
end
end
return newCharacter
end
Please keep in mind this is more of a pseudocode and an example you can use.
Good luck!
If you want, you can refer to other devforum posts which can help you.
making a game like fifa takes a lot of development. how-ever setting this as a longterm goal might be interesting
first you need to get to know how you can script
step1: make a obby. pick a theme and go for it, obbys are hard when you jsut start, but it is a good first step.
learn stuff as -datastore and basic scripting like what to do when something hits a part
step2: a basic sword game.
swordgames usualy alsow have rounds i can see that some of the mechanics for a swordgame would alsow benefit the footballgame
make a realy easy footallgame.
just an ball and let the players bumb into it. make a detector for when the ball hit a goal.
I’m actually developing a football game, I would recommend @Aldanium and @boeljoet’s idea, this information can be rare you also can contact and ask for idea by developers who make Soccer games.