#why cant i drag marker3d to the waypoint?
100 messages · Page 1 of 1 (latest)
I'm not sure if that will work, but it should make it so that your exported array is typed correctly
Let me try it
still wont work
if you help me i will buy you 1 game
from steam
if you can fix my issue
You'll have to fix the error first, for the code to have any effect
Looks like it's on line 35
yes
if waypoints.is_empty():
waypoints = get_tree().get_nodes_in_group("enemy_waypoint")
Okay, yeah, that makes sense
Um, is it important for this array to only accept Marker3D types? Like, is the static typing really important to your code?
If so, then we can fix line 35. If not, then we can just change line 7 to:
@export var waypoints: Array[Node] = []
thanks a lot
it finaly worked
How can I thank you?
I'm good! I just tried to help someone else and it didn't go well. So i'm just glad i was able to help you 👍
thanks
got another issue
why my character moves like this?
Oh, leaning over?
Is it a character body or rigid body?
CharacterBody3D
Let me look into it
"heres the code
I don't see anything in there that is changing the rotation. When does this happen? Right away when you start the game?
yes
Is it tilted in the editor, before you start the game?
when i start the game the enemy rotates it weirdly
what do you mean?
If you look at the 3D scene, is this character tilted?
Hmm, i'm not sure what would cause it then
There is a way to keep the character from rotating:
Check the "Angular X/Y/Z" boxes under "Axis Lock"
Hmm, i'm not sure then. It sounds like the rotation is getting set directly somehow. It's not a physics thing
It says you have a few errors in the "Debugger" at the bottom of the page. Can i see what those are? Might be related
Okay, those don't seem to be related
Maybe, could you zip your file and send it to me? I'm not sure what could be causing the issue, so it would be helpful if i could just look around
there
Cool 👍 i'll take a look
hey
this is the old code
this is my old code for my character but it didnt work so i asked ai to help me and it messed up
but before the character act normaly
it moves from a to b
but then it doesnt move
now my character moves but rotation is weird
Okay, i can't get it to run, with the original code or this code you just sent
the original code you can forget it
Is this code for the player or the enemy?
Okay, sorry, i still can't get it to run. Does it run on your computer?
did you get a crash?
also no need to sorry you help me a lot
i need to thank you
Yeah, it's giving me a crash on the player script. I think it can't find some nodes, like "pistol" and "pickaxe"
I have to go right now, but i can keep on looking at this in an hour or so
do you want to see it tomorrow?
we can keep talking later
because now i have to sleep
Hey, i took a quick look at your project. The issue might be that your enemies have different scripts. It looks like the first enemy (called just "enemy") has the script "enemy1.gd". The other enemies have the script "enemy_moves.gd"
I wasn't able to get your project to run, so i'm not certain if this is the issue. But this is a possible thing to look at and fix
(Sorry that my mouse isn't showing up in the screencast. I haven't been able to make it show up in my screencasts)
So, i'm actually going to get off of Discord for a while. (I've been spending too much time on it 😅 ) So I won't be able to help you anymore with this problem
If my idea that i sent above doesn't work, you might try making another post to ask about this problem. I'm sure someone else will be able to help 😊
Good luck with your project!