Enemies are moving on a z axis. PLEASE help

So I believe I copied everything identically as shown in the video, but for some reason my enemies are moving on x and z axis and not x and y. I will share a screenshot. please help me I am terribly stuck and can not find the problem.

image

Hi tatia,

Welcome to our community! :slight_smile:

The enemies are supposed to move along the x- and the z-axis. If they moved along the y-axis, they would be flying. Click your concerning enemy and check its position in the Inspector.

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?


See also:

I found the problem. you are right, i wrote position.y instead of position.z. Thank you so much!!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms