godotengine / tps-demo

Godot Third Person Shooter with high quality assets and lighting
Other
955 stars 166 forks source link

Fixing red robot start positions #144

Closed aidan-j-rhoden closed 1 year ago

aidan-j-rhoden commented 1 year ago

When the player first enters a red robot's detection collider, it drops to the floor and then approaches the player. This is because they are placed slightly above the ground in level.tscn, as it is somewhat hard to get just perfect. I added a line in red_robot.gd to apply gravity while it is idling, so it doesn't just hover there.

All the other diffs in this PR are likely from changes in Godot version, as the only one necessary is in red_robot.gd.

aidan-j-rhoden commented 1 year ago

Sorry, ignore this. Let me squash it, and I'll try again.

Calinou commented 1 year ago

Superseded by https://github.com/godotengine/tps-demo/pull/145.