can somebody help me debug
tldr i donr know what my problem is but in unity i cant compile one of my player movement scrpts beacuse it is causing an error
error: Assets\Scripts\comtrollers\HumanoidLandConroller.cs(39,2): error CS1513: } expected
code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Humanoidlandcontroller : MonoBehaviour
{
Ridgidbody _ridgidbody = null;
[SerialiseFeild] Humanoidlandimput _imput;
vector3 _PlayerMoveImput = vector3.zero;
[Header("movement")]
[SerialiseFeild] float _movementMultiplier = 30.0f;
private void Awake()
{
_ridgidbody = GetComponent<Ridgidbody>();
playermove();
_ridgidbody.AddRelativeForce(_PlayerMoveImput, ForceMode.Force);
}
private void FixedUpdate()
{
_PlayerMoveImput = GetMoveInput();
playermove();
_ridgidbody.AddRelativeForce(_PlayerMoveImput, ForceMode.Force);
}
private vector3 playermove()
{
return new vector3(_imput.MoveImput.x, 0.0, _imput.moveimput.y);
}
private void GetMoveInput()
{
_PlayerMoveImput = (new vector3(_PlayerMoveImput.x * _movementMultiplier * _ridgidbody.mass,
_PlayerMoveImput.y,
_PlayerMoveImput.z * _movementMultiplier * _ridgidbody.mass ));
}
notes: i dont have anything els to say about the issue thats all it is on the surface level72 Replies
have you tried matching the braces
{ }
?
on a sidenote, no need to get aggressive with the titleyeah
the brackets look, fine ig
I think you have a typo, should be
[SerializeField]
you're missing the closing one on your classwhere abouts?
where your class ends
uhhhh?
add one
}
after your GetMoveInput
methodš bro im confused allready
about what?
every starting
{
should have a closing }
everything ur saying
u basically have
see where its missing now?
before public class?
no
like
?
that would be incorrect
the methods belong to the
Humanoidlandcontroller
š
have you been through the c# fundamentals?
no
I strongly suggest it before venturing into Unity
tbh this is code that i diddnt even write i frankenstined together i have extremelly limited progremming experiance š š š i dont understand likr bro š
learning doesn't come easy
there's hardly any learning involved if you just copy and paste stuff from the internet
everyone more experianced than me puts me down because of there shitty superiority complexes
learning the fundamentals first will help u understand whats going on
^
it makes it hard to even be motivated to even learn or know where to learn from
if you're looking for a starting point, $helloworld
oh shut up with ur console.log sounding ass
come again?
console.log
is javascript, not c#š
and if u are refering to the
$helloworld
, thats just the bot tag to display that messageI can assure you, accepting help is way more fruitful than dismissing it
i start on courses and totorials but guess what after 5 minuets theres a pay wall everytime so i can only take in the begining š
there is no paywall
theres paywalls everywhere
with the link I provided, prove it
im talking about learning tools i cant read of of wiki and underastand
THE PAYWALLS š
if you're not here to learn, I cannot help you
š
so whats the problem with the provided links? as said there are no paywalls there
atleast help me fix my code
i need this w
please
I did
and so did cap5lut
but like can u edit it the send me the code back?
no
please bro
we dont spoonfeed solutions in here
this place is for learning, not spoonfeeding
we help u reach the solution urself, but thats it
i want to learn but everyone els is such a dick, all high and mighty im not talking about this forum
aight, did you check the links?
ill check them out
hx
perfect
should i learn java first?
or pyth
no
no
stick to one language
how hard is c#
easy
i only know batch
not even a real languge
š
C# is a good language to start learning
ill try it out
u can have a fulll range of stuff u can write with C# ranging from small CLI tools over GUI applications (Desktop and Mobile) to web applications and game development
the only stuff u cant really do with c# itself is writing close-to-the-metal stuff, like hardware drivers or operation systems (and even there are approaches to get that working)
by system operations do u mean like directly executing windows processes kind of like batch????
i said operation systems, not system operations, as in like windows itself ;p
starting other processes, is just one to a couple of lines in C#
i aint building my own os wdym
oh
ok
i was just talking about what u can possibly do with C#, not what u have to do
its almost 40 degrees outside
ventalation is compleately broken
im sitting in germany, its -8Ā°C rn, outside ;p
atleast ur not melting
omg i allready fkced up writing hello world
š
TO MANY CHARICTERS IN LITERAL
Console.WriteLine('Hello World!');
WHYYYYYYYYYYYYYYYYY
yk what ill try again tomorrow
im not cut out for this
yk how many times since 2020 ive tried to learn
"
is different to '
i swear i put double quotes
yeah
!warn @ā³ ok.zero uncivil posts
do it again and you're banned @ā³ ok.zero š