Bug - Movement

You use the _process(delta) to calculate movement. That wont work with move_and_slide() which is dependant on the physics delta. So instead you should use _physics_process(delta).

If you use _process(delta), you will get different speeds on different platforms.

Oh, same goes for the Guards in chapter 54.

1 Like

Hi Måns,

This kind of post may be more beneficial in the Q&A on Udemy, as you are more likely to get a response from the instructor, they don’t all frequent the forums as often etc.

Let’s tag @Yann_Burrett and see if we grab him for you :slight_smile:

Oh, i see. Thanks for the heads up. :slight_smile:

1 Like

No problem at all :slight_smile:

Thanks Rob! And thanks Dosse. I’ll make a note and see if I can’t get that bug fix out soon

1 Like

Thanks a lot! This fixed the movement bugs I was having and also a bug that started happening when I added movement to the guards, where the intersect_ray on PlayerDetection.gd would return an empty dictionary!

Privacy & Terms