#i dont know why its doing this now
1 messages · Page 1 of 1 (latest)
turret.position - turret.position 🤔
also you were supposed to remove the ones under it..
i did and i tried it again without removing them
why would you do that
assigning rotation twice makes no sense
it would not fix anything
fix the direction and it would've worked
do you see tge one you have direction
its the same thing..
the name was just different
do you see what you wrote instead?
i think i replaced them with something else
instead of turret it should be direction?
i have no idea what that means or why you would do that
you should probably do the !learn beginner courses and c#
:teacher: Unity Learn ↗
Over 750 hours of free live and on-demand learning content for all levels of experience!
you're missing some pretty obvious understanding how examples of code and how they fit in your context
Ima try one last time before I give up on this tbh
taking way longer than it should for something to simple
compare yours from Before.. to what you wrote
Do you see the difference ?
yeah?
what is the difference? Aside from the name of the variable direction being different
first one only has direction while second one has directionToTarget and first one has closestEnemy.position while the second one has turret.position
I feel like i shouldn't be sturggling with this
you skip the basics this is wat happens
this isnt even a code thing though
this is like literal brain though
spot the difference between photo 1 and photo 2
there is no code to think about. Look at the words..
shouldnt be this hard to describe whats different between these two
there is only one difference tho and its the words
One of them says its closestEnemy.position other one says turret.position
thats all i can think of
ok. So why did you write that instead
if you were only meant to copy as example but place everything you had before
why did you write a different operation
I thought we were talking about the things in hirearchy
why did you write a-a instead of a-b
no that was not mentioned, when you showed the error I specifically said its because you copied the code as I wrote verbatim instead of replacing it with the variables you already had
just because I wrote directionToTarget instead of direction doesn't change thats is clearly the same logic/operation that needs to happen
this is where you must apply common sense, the code part is not relevant
thats the thing when i approach a problem in unity, I just think there will be different codes to fix my problem and it just ends up something like this
plastering "more codes" wont fix anything, you have to understand WHY you are using specific lines of code for.
code is just a toolbox to do specific things
knowing what tool you need at specific part to do thing you need is what makes you good at it
if you skip straight into whatever complex project you're doing now without learning the basic tools , you will continually struggle
I understand that i just wanted to start with something big and go slowly
but it was a pretty bad idea
well going slow is good, but starting big is very wrong
for example. Vectors are very important concept for developing games
if you dont learn these important concepts you won't be able to make much
the good news, its not difficult
if you can do basic arithmetic math, you will be ok
that being said i think i did something wrong again i think
i was just making this for a project but it seems like i went too far
what give you the impression that making a game is something you can just do without any knowledge ?
anyone can learn it ofc but you can't just jump into it without picking up the basics
make an easier project to start with , the ones from https://learn.unity.com/pathway/junior-programmer are good to start with then you can branch out to more complex games
things like moving objects on screen and making other objects follow another etc
alright
now its just aiming once and doesnt move
I'm not psychic 🤷♂️
is it at least aiming in the correct location
I cant see whats happening just by the scrip show whats happening in game
it just shoots the position the ball came from and it stops moving
show the full !code send it via link
📃 Large Code Blocks
Use links to services like:
https://gdl.space/, https://paste.ofcode.org/, https://hatebin.com/, https://paste.myst.rs/, https://hastebin.com/
📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To format as C#, add cs to the first line:
```cs
// Your code here
```
Add a comment with a line number if there is an error message.
wat
you have not read 1 line of waht was sent
i dont have much patience
read the bot message once more then figure it out
so you completely skipped the first part where it talks about large code?
wow
literally reading comprehension issue or laziness ? thats what im confused on
the former I can forgive..but seriously.
what did i do wrong
go back to the bot message and read the clearly huge text that labeled "Large Code Blocks"
yeah i went to the website and pasted it there
so save it and send the link.
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
ok start putting debug.logs and see if they are running that function after it stops following it
narrow down where it stops
do i put the code every {}?
like test it first then repeat it on the different part