Topic was automatically imported from the old Question2Answer platform.
Asked By
Drimenlon
I am following the tutorial from dodge-the-creeps but the mobs do not appear. I want to know how the Path2D works because I think thats the problem but I am no sure.!
I put the url of images that show my project, hope someone know why mobs do not work. sorry for bad english.
Do you get any error messages at all (not recognizable by looking at your images)?
Try to add a
print("Mob has spawned")
into your _on_MobTimer_timeout() function and check if you see that text appear after starting the game.
I know that I had made a mistake following that tutorial, too. In my opinion (which doesn’t help you at all, I know), this tutorial should not be the first newbies are confronted with. It’s already too complicated to follow with all those intertwined Timers and game characters.
From the second screenshot it looks like you didn’t connect the timeout-signal of the StartTimer-node to the _on_StartTimer_timeout-callback. Then the MobTimer isn’t started as well, thus cannot timeout and spawn any mobs.
I figured it out! I was having the same trouble so I tried checking everywhere. I noticed something though. I don’t know if I missed it or something but my MobTimer did not have auto start turned on and so I turned it on. Guess what, IT WORKED! It only works when auto start is turned on but I don’t know if that’s how it really should be.