#i dont know why its doing this now

1 messages · Page 1 of 1 (latest)

compact nacelle
#

show the current updated code you wrote

#

and inspector

worn scaffold
#

wait cant i just move the transform 90 degrees?

#

i'll send it in a sec

compact nacelle
#

also you were supposed to remove the ones under it..

worn scaffold
#

i did and i tried it again without removing them

compact nacelle
#

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?

worn scaffold
#

i think i replaced them with something else

#

instead of turret it should be direction?

compact nacelle
#

i have no idea what that means or why you would do that

#

you should probably do the !learn beginner courses and c#

sleek archBOT
#

:teacher: Unity Learn ↗

Over 750 hours of free live and on-demand learning content for all levels of experience!

compact nacelle
#

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 ?

worn scaffold
#

yeah?

compact nacelle
#

what is the difference? Aside from the name of the variable direction being different

worn scaffold
#

first one only has direction while second one has directionToTarget and first one has closestEnemy.position while the second one has turret.position

compact nacelle
#

no

#

the last part

#

once again, what is the difference here

worn scaffold
#

I feel like i shouldn't be sturggling with this

compact nacelle
#

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

worn scaffold
#

there is only one difference tho and its the words

compact nacelle
#

great and what is that?

#

describe it

worn scaffold
#

One of them says its closestEnemy.position other one says turret.position

#

thats all i can think of

compact nacelle
#

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

worn scaffold
#

I thought we were talking about the things in hirearchy

compact nacelle
#

why did you write a-a instead of a-b

compact nacelle
#

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

worn scaffold
compact nacelle
#

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

worn scaffold
#

I understand that i just wanted to start with something big and go slowly

#

but it was a pretty bad idea

compact nacelle
#

well going slow is good, but starting big is very wrong

compact nacelle
#

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

worn scaffold
#

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

compact nacelle
#

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

#

things like moving objects on screen and making other objects follow another etc

worn scaffold
#

alright

worn scaffold
compact nacelle
#

I'm not psychic 🤷‍♂️

worn scaffold
compact nacelle
#

I cant see whats happening just by the scrip show whats happening in game

worn scaffold
#

it just shoots the position the ball came from and it stops moving

compact nacelle
sleek archBOT
worn scaffold
#

I cant send long messages

#

oh wait

#

yeah it doesnt let me

compact nacelle
#

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

worn scaffold
#

yeah im typing 3 quotes cs

#

but it doesnt do anything

compact nacelle
#

so you completely skipped the first part where it talks about large code?

worn scaffold
compact nacelle
#

wow

#

literally reading comprehension issue or laziness ? thats what im confused on

#

the former I can forgive..but seriously.

worn scaffold
#

what did i do wrong

compact nacelle
#

go back to the bot message and read the clearly huge text that labeled "Large Code Blocks"

worn scaffold
#

yeah i went to the website and pasted it there

compact nacelle
#

so save it and send the link.

worn scaffold
compact nacelle
#

narrow down where it stops

worn scaffold
#

do i put the code every {}?

worn scaffold
compact nacelle
#

put as many as you need

#

eg
if (enemies.Count > 0)
{
// En yakın düşmanı bul
Transform closestEnemy = GetClosestEnemy(enemies);
Debug.Log($"closest enemy {closestEnemy }");