Converting a V3 project to V4

I took a V3 project I wrote for Godot Wild Jam 4. I let it convert as much as it could but there were a few things that didn’t convert

  • collider property has become a method get_collider() in v4
  • for my Rock object (RigidBody2D scene), set the Linear Damp to 0.0 and the Angular Damp to 0.0; was originally to -1 and -1 respectively, which caused mad acceleration in v4 when the Rock object collided with something else.
  • Texture Repeat needs to be enabled for the Starfield background otherwise its blank
  • on_body_entered different in v4 so being hit by a bullet (‘entered’) is no longer being triggered - only if the bullet fired is point blank range, or created inside the rock - switched to use the return from move_and_collide to detect a collision - i.e. when a bullet hits a rock
  • intersect_ray needs a structure passed to it in v4, easily switched from v3
  • tweening works differently between v3 and v4 - simply commented this out for now
  • font sizes didn’t get carried across. I used a custom font, it looks tiny in v4

I’ve noticed this before, between V2 and V3 there were enough changes to completely break a project, seems to be the same with V3 and V4 - understable since backwards compatability is not there.

1 Like

You can check the documentation for a more in depth list of changes between versions and how to migrate:

2 Likes