#i cant find the problem pls help

1 messages · Page 1 of 1 (latest)

minor crystal
#

i am following a course and idk whats wrong

shell island
#

you are trying to reference a "Spawner" but you have a "Syncronizer"

#

i think

#

might want to show your main scene tree

minor crystal
#

ok

minor crystal
#

i also changed the names in case of somehting to this and still error

#

and the root char body to enemy2

#

gonna leave for a while but will see

shell island
#

error might be in your enemy.gd script?..

#

if you set a class_name in your enemy script .. which might be ..

class_name Enemy

then you can instantiate it as Enemy, not Node2D ..
but maybe that is not the issue either 🤷‍♂️

lethal cipher
# minor crystal gonna leave for a while but will see

The issue is that you are adding the Enemy scene to one client (the authority) but not the other. When the other client connects, the synchronizer on the Enemy on client 1 is trying to find the enemy synchronizer on client 2, but there is no Enemy on client 2. You need to spawn the Enemy, much like you are the player, using a spawner

#

PS: Try to give your questions descriptive titles

minor crystal
#

working on the other one

minor crystal
#

you guys are awesome

lethal cipher
minor crystal
lethal cipher
# minor crystal

I specifically avoided that phrase just in case it triggered something

minor crystal
#

idk

#

i just hoverd over ur pfp

lethal cipher
#

(I don't think it does without the tag)

minor crystal
#

u have to do @Happy_to_help