You’re welcome! Converting scripts from 3.x is very difficult, so it’s good to try and find tutorials for 4.x when you use 4.x
I mostly choose this tutorial cause I really liked the editing style and the guy in the tutorial explained everything
and there was a pinned comment that explained all the things that had changed in version 4 so I didn’t think it would cause any problems
Also one more question that just popped into my head
in the code I assigned a variable called ball with no values assigned to it
and after assigning it I created a function called _ready() and gave the ball variable position data of the the node ball
but doesn’t that mean that only in the _ready() function contains the ball variable that has the ball position data or can i use it outside the _ready function cause i did use it later on in the opponent_direction() function
i know you have helped me out a lot but I’m just very curious about this and if you could tellme about this that would be amazing
You can use it everywhere, as long as it’s been assigned to before, so after _ready
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.