#Hilo
1 messages · Page 1 of 1 (latest)
have you installed visual studio 2022?
i have the app
sure?
i dowloaded in microsoft shop
do you have that on your computer?
so idk wtf is happenning to you...
if you had it it would be like that...
sorry for waisting your time
nah, i don't really care about it :> i know how frustrating is to start on this...
is just its alot of times that i wanna make a game put im scared of not doing it
i have a idea but idk how to do it
can i delete does??
@inner laurel
hmm, let me think a moment
for what??
don't touch that
why??
its part of the program
yeah can i ask you something??
sure
could you help me just making the movement??
just that
like w a s d and space only that
@inner laurel
3d or 2d?
3d or 2d
3d
damm, my internet is too slow hehe, sorry for the late xD
thats fine put 3d
i could try it
i just found i tutorial
2 mins
i know how to do it
WRONG ONE
Walk, Run, Jump and Sprint! Easily customizable!
A very simple player movement script that will get you started on your 3d project. Code is pinned in comments.
3D, First person (easy change to third person).
Sub for more :)
yeah i wanna invte you
invite you
please dont griff
is not that easy, and i don't have that much time, so i could tell you all right here
right
so what do i do
hmm, you have the proyect, right?
yeah matrix
You could first start creating a simply plane and a sphere
ok
its ok capsule??
we don't care about the shape :>
oki >:)
i recommend you rename both to ground and player
let me see
yeahhhhhhhhhhhhhh
THERES IS
ok, so it is like the object that is gonna be responsible of collisions
ok
ok
that's the component that is gonna controll physics
X Y Z???
nope, gravity, forces and that kinda things
for example
once you've added it click on play, and youll see the capsule it's affected by gravity
the capsule falling down??
yeh
yeah
perfect
so now??
as you can see we have a problem
yeah
no, we don't have it already xD
my fault
but we will have it, the player is gonna fell into the floor
to avoid the player rotation, click on there
once that's done, we can start programming it
ok
i forgot telling you that you can "play" with the player on scene window
ok
ok, lets create the script...
oki
the script is a file that contains the code, i recommend you to create a folder named scripts and then right click and new c# script
name it for example PlayerMovement
oki
tell me once you have it opened
let me open it
oki
have you deleted something, right?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}```
only this??
nope
oh
that is what you've deleted, right?
or the script was empty?
its was empty
certainly that's quite weird
theres was my old script
so now??????????????????????????????????????????????????????
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
paste that
same script??
what?
oh, no
what
just once at the top :>
ohhhhhhhhhhhhhhhhhhhh
and now???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
what a var+
do you know what are vars?
lol
no
ooff, those vars are like containers that containt different values
OHHHHHHHHHHHHHHHHHHHHHHHHHHH
for example the points of a shooter
the health of a player
or in this case the speed of our player
the same script
do i have to copy that abd paste???
paste that before the start void
send me full ss
nono
so where
the var goes up the start
appart from that, everything that starts with // is a comment, something that is just for you, the code is not gonna read that line
i need to delete that line??
you can, but it's not necessary
where?
the next line
bro i have to go to sleep coul you send me the entire script
and tommorow where gonna finsih it
its 23:45
suree, ```csharp
using UnityEngine;
public class PlayerMovement: MonoBehaviour
{
public float speed = 5.0f; // Movement speed
void Update()
{
// Forward movement
if (Input.GetKey(KeyCode.W))
{
transform.Translate(Vector3.forward * speed * Time.deltaTime);
}
// Backward movement
if (Input.GetKey(KeyCode.S))
{
transform.Translate(Vector3.back * speed * Time.deltaTime);
}
// Left movement
if (Input.GetKey(KeyCode.A))
{
transform.Translate(Vector3.left * speed * Time.deltaTime);
}
// Right movement
if (Input.GetKey(KeyCode.D))
{
transform.Translate(Vector3.right * speed * Time.deltaTime);
}
}
}
UHHHH YOU ALREDY FINISH IT??
don' worry, just dm me tomorrow if you want
i have 5 more mins
lets do this fast quick
i copy and paste now???'
ima close the script oki??
save it first
oki
then open unity and send me full ss of your unity screen to check it
once, just drag the script into your Player
oki
oki
its still not working
and camera its saying script missing
@inner laurel
i think you have not correctly saved the code
as you can see, all is empty
and now??
open it doing double click
and paste it again...
i really recommend you to watch a tutorial carefully following all steps...
save it
how??
did
here
restart unity
bruhh, let me find a video for you
Just help me tomorrow
We have a problem xD, I'm not gonna be at home today hehe
I could help you tomorrow
Thats fine
Theres school
Nope, in Spain we have Hollidays for a week 🥳
@inner laurel
ITS WORKING
ITS WORKING
STILL SOME BUG LIKR THE CAMERA ITS NOT FOLLOWING THE PLAYER BUT THE PLAYER IS MOVING
Obviously, we haven't programmed that
Good news
yeah BUT ITS MOVING
There are better ways to program movement, but hey, little by little
I recommend you to try making the camera to follow the player
yeah but when i move the caspule falls down by gravity
how
fixed again
its not falling anymore
Constraints, right?
But now there is no Gravity xD
Not with physics
To jump we have to add a vertical force, and if there is no Gravity, the character is going to go up and up
how to add vertical force??
of the script??
Yep
And instead of getKey field use getKeyPressed
Cause we just want to detect a single tap on the key
Me to
Byee
It would be smth like this
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float speed = 5.0f; // Movement speed
public float jumpForce = 8.0f; // Jump force
private bool isGrounded; // Check if the object is grounded
void Update()
{
// Forward movement
if (Input.GetKey(KeyCode.W))
{
transform.Translate(Vector3.forward * speed * Time.deltaTime);
}
// Backward movement
if (Input.GetKey(KeyCode.S))
{
transform.Translate(Vector3.back * speed * Time.deltaTime);
}
// Left movement
if (Input.GetKey(KeyCode.A))
{
transform.Translate(Vector3.left * speed * Time.deltaTime);
}
// Right movement
if (Input.GetKey(KeyCode.D))
{
transform.Translate(Vector3.right * speed * Time.deltaTime);
}
// Jump
if (Input.GetKeyDown(KeyCode.Space) && isGrounded)
{
GetComponent<Rigidbody>().AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
isGrounded = false;
}
}
void OnCollisionEnter(Collision collision)
{
// Check if the object is grounded
if (collision.gameObject.CompareTag("Ground"))
{
isGrounded = true;
}
}
}
But I don't recommend you to just copy and paste code without knowing what it does...
TYYY
not working the jump :((
@inner laurel
or first can we do first person script??
@inner laurel
Later I try to help you, I am not at home yet
:((
oki
but we need to make this fast we have the game project
who makes the best game in one day he will get a reward and your my only chance please
@inner laurel
If you just wanna create kinda a game and you just need to program simple scripts, I recommend you to ask it to chatgpt
i dont have chat gpt
Bruh men I'm out and it's impossible for me to help you rn 🥲
See Google gemini
Or another AI
There are a lot
i just need to make first person
Is not that easy to copy and paste one script...
FIRST PERSON MOVEMENT in 10 MINUTES - Unity Tutorial
In this video I'm going to show you how to code full first person rigidbody movement. You can use this character controller as final movement for your game or build things like dashing, wallrunning or sliding on top of it.
If this tutorial has helped you in any way, I would really appreciate...
Watch carefully any video like that one...
@inner laurel
this is not working
are you at home??
I just arrived
Yes, we can try it
i just need first person camera rotation
Hmm like for example Fortnite one?
Hmm, so you wanna make the character to rotate itselfwith the camera behind him, right?
With the mouse... I suppose
wait how old are you??
yeah
15 xD
im 13 but i sound like 10...
could we mabye call with no talking and ima show you what im doing??
it will be more easy
I prefer to talk by chat :>
Could you just send me a ss of your scene?
but its more easy
ok
like i want to have first person rotating up down lef and right
lets get started
what do i do??
Let me think one moment
Could I ask you one thing?
yep what??
You just wanna have the character full movement, right? Would it be a good idea to use a predefined character controller to save you trouble?
Or is the point of programming it entirely...?
we need to make this quick just help me with the camera please
i need to go to sleep
Ok, create a camera
Could I try to create it previously in a few minutes?
yeah
I'm trying to finish it as quickly as possible hahaha, I know it's a little late and you might have to go to sleep
you try to do it ima finish the mapa
you just try
Perfect
ping me when you done
Yep, i have to say i have not created it myself entirely, but it perfectly works :>
im gonna send it to you
the script??
where to put it
to help you as fast as possible
🙂
create an script called FirstPersonLook
so camera
ok
camera has to be inside your character
ok
and then, you have to add the script to your camera
once, you have to drag your player to there
and that's it
let me check one thing
😦
script??
nope
certainly its so weird, it works for me
let me think a moment
ERRORS
but how??
huh
but is saying now errors
:((
what do we do now??
@inner laurel
we are going to do one thing, and probably the best for you
i'm gonna send you smthng
and now'??
and drag that into your scene
and delete your's one
that is gonna work perfectly
i did it
is gonna work
and now??
i deleted them..
press play
or clear
press play again
and they should get there again
I CLEAR THEM
do you have any script in the proyect?
not the asset ones
THE SCRIPTS ARE BLOCKING THE THING
no
delete it
i dont want you to touch anything inside this folder, right?
have you moved your mouse?
I gave you the entire controller!
just do what i say you, delete evrything related to your player
all scripts, all folders and all
like the script
all
player movemtn
all
delete all
from my old one
the entire folder
yep, your old one too
just do what i say you
delete all cameras from your scene and your player too
once, send me ss
right?
no
delete that too
ss of this, please:
ok then??
EVERY THING???
once, import the package i sent you before
and drag exactly that capsule to the scene
make you sure its the same!!!
not the other
and then press play
please, tell me it works
ITS WORING THANK YOU
IMA WIN THIS
THANK YOU
THANK YOU
THANK YOU
THANK YOU
THANK YOU
YOUR AWESOME THANK YOU
THANK YOU SO MUCH
YOUR MY HERO THANK YOUU
It includes sounds, sprint and also you can crouch
wtf
ITS SAYING SCRIPT MISSING
😦
i know what is happenning
FAST MY DAD ITS ANGRY PLEASE
its the same one
before I moved the folder script and forgot to leave it where it was going xD
It has been a pleasure to help you hahajsaj, it has been a bit difficult, but we have ended up achieving it
You'll tell me
🙂
@inner laurel
what?
wich link!!
This
Ty
The problem was i click the x and i did save
I re join the game
Script missing
@inner laurel
Ima just save tomorrow like you
you must make all changes in your game out of gameplay mode
THE GAME WORKS
Tell me :>
Again with that man? Have you googled how to do it?
That's probably related to the controller
how to fix
If it doesn't affect to your game that shouldn't matter to you
its saying cant play games with errors 
hmmm, so they are errors in red, not in yellow
RED
but send me a ss of the entire error
man, i need to see the script to gess what's happenning
:> I'm not a wizard
could you send it to me like text?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class objPickup : MonoBehaviour
{
public GameObject crosshair1, crosshair2;
public Transform objTransform, cameraTrans;
public bool interactable, pickedup;
public Rigidbody objRigidbody;
public float throwAmount;
void OnTriggerStay(Collider other)
{
if (other.CompareTag("MainCamera"))
{
crosshair1.SetActive(false);
crosshair2.SetActive(true);
interactable = true;
}
}
void OnTriggerExit(Collider other)
{
if (other.CompareTag("MainCamera"))
{
if(pickedup == false)
{
crosshair1.SetActive(true);
crosshair2.SetActive(false);
interactable = false;
}
if (pickedup == true)
{
objTransform.parent = null;
objRigidbody.useGravity = true;
crosshair1.SetActive(true);
crosshair2.SetActive(false);
interactable = false;
pickedup = false;
}
}
}
void Update()
{
if (interactable == true)
{
if (Input.GetMouseButtonDown(0))
{
objTransform.parent = cameraTrans;
objRigidbody.useGravity = false;
pickedup = true;
}
if (Input.GetMouseButtonUp(0))
{
objTransform.parent = null;
objRigidbody.useGravity = true;
pickedup = false;
}
if(pickedup == true)
{
if (Input.GetMouseButtonDown(1))
{
objTransform.parent = null;
objRigidbody.useGravity = true;
objRigidbody.velocity = cameraTrans.forward * throwAmount * Time.deltaTime;
pickedup = false;
}
}
}
}
}
HERE
let me take a fast look at it :>
i'll try it :>
i need to go to sleep BYE
tommorow :>
suree, i'll try to give you a solution
oki
@visual lake It was a silly error hehe
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OBJECTS : MonoBehaviour
{
public GameObject crosshair1, crosshair2;
public Transform objTransform, cameraTrans;
public bool interactable, pickedup;
public Rigidbody objRigidbody;
public float throwAmount;
void OnTriggerStay(Collider other)
{
if (other.CompareTag("MainCamera"))
{
crosshair1.SetActive(false);
crosshair2.SetActive(true);
interactable = true;
}
}
void OnTriggerExit(Collider other)
{
if (other.CompareTag("MainCamera"))
{
if (pickedup == false)
{
crosshair1.SetActive(true);
crosshair2.SetActive(false);
interactable = false;
}
if (pickedup == true)
{
objTransform.parent = null;
objRigidbody.useGravity = true;
crosshair1.SetActive(true);
crosshair2.SetActive(false);
interactable = false;
pickedup = false;
}
}
}
void Update()
{
if (interactable == true)
{
if (Input.GetMouseButtonDown(0))
{
objTransform.parent = cameraTrans;
objRigidbody.useGravity = false;
pickedup = true;
}
if (Input.GetMouseButtonUp(0))
{
objTransform.parent = null;
objRigidbody.useGravity = true;
pickedup = false;
}
if (pickedup == true)
{
if (Input.GetMouseButtonDown(1))
{
objTransform.parent = null;
objRigidbody.useGravity = true;
objRigidbody.velocity = cameraTrans.forward * throwAmount * Time.deltaTime;
pickedup = false;
}
}
}
}
}
New script??
Ty
Ty



oki