Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PathFollower2D Does NOT Update the Position and Collision of Child Tilemap with collision_animatable True #79658

Closed
Lazy-Rabbit-2001 opened this issue Jul 19, 2023 · 0 comments · Fixed by #81070

Comments

@Lazy-Rabbit-2001
Copy link
Contributor

Lazy-Rabbit-2001 commented Jul 19, 2023

Godot version

4.1.x

System information

Windows 11

Issue description

When a Tilemap node is attached as a child node of PathFollower2D node, with collision_animatable on in the inspector, the tilemap will stuck at (0, 0) if you scripted the movement of the PathFollower2D node with progress changed; while the tiles run as usual if collision_animatable is false.
This is very weird because the documentation said that "you can make Animatablebody2D move with script", and I used but it feedbacked a strange result, which is unacceptable and unwilling to see.
More detailed info please see the minimal project

P.S. Only under PathFollower2D, you add a RemoteTransformer2D that linked to a Tilemap can the tiles move as usual with collision_animatable on.

Steps to reproduce

In the minimal reproduction project:

  1. Make the collision_animatable of Tilemap and run the project, and you can see the tilemap moves as usual
  2. Then tick on the property and run the game again, in which you can see the tilemap stuck at (0, 0) permanently.

Minimal reproduction project

bug report.zip

@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Tilemap under PathFollower2D with collision_animatable True Makes the Tilemap Keep (0, 0) Tilemap as a PathFollower2D with collision_animatable True Makes the Tilemap Keep (0, 0) Jul 20, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Tilemap as a PathFollower2D with collision_animatable True Makes the Tilemap Keep (0, 0) Tilemap as a Child Node of PathFollower2D with collision_animatable True Makes the Tilemap Keep (0, 0) Jul 20, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Tilemap as a Child Node of PathFollower2D with collision_animatable True Makes the Tilemap Keep (0, 0) Tilemap with collision_animatable True as a Child Node of PathFollower2D Makes the Tilemap Keep (0, 0) Jul 20, 2023
@Lazy-Rabbit-2001 Lazy-Rabbit-2001 changed the title Tilemap with collision_animatable True as a Child Node of PathFollower2D Makes the Tilemap Keep (0, 0) PathFollower2D Does NOT Update the Position and Collision of Child Tilemap with collision_animatable True Aug 24, 2023
@akien-mga akien-mga added this to the 4.2 milestone Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants