Problem whit the Enemy mover

I cant drag and drop the tiles in the enemy mover to make the path. Any idea why?

Without seeing your scripts or inspector it requires guessing. Most likely your tiles don’t have the Waypoint script attached, or the path List in EnemyMover is set to something other than Waypoint. For it to work as in the lecture you need to match the Type in the List to the script on the tiles:

[SerializeField] List<Waypoint> path = new List<Waypoint>();

And your tiles must then have the Waypoint script attached to them. If those two things don’t match up it won’t work as expected.

This is my code and i cant drag the tiles on the path on the right

Like @Satinel mentioned, you should make sure the tiles have the script attached. We can’t see the waypoints from that screenshot, so it’s not really helping

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

Privacy & Terms