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

Fix Trail(GPUParticles2D) in Dodge The Creeps #986

Merged
merged 4 commits into from
Oct 30, 2023
Merged

Fix Trail(GPUParticles2D) in Dodge The Creeps #986

merged 4 commits into from
Oct 30, 2023

Conversation

Nazarwadim
Copy link
Contributor

Before:
photo_2023-10-21_22-25-22
After:
photo_2023-10-21_22-25-31

@@ -37,6 +37,7 @@ func _process(delta):
elif velocity.y != 0:
$AnimatedSprite2D.animation = &"up"
$AnimatedSprite2D.flip_v = velocity.y > 0
$Trail.rotation = PI if $AnimatedSprite2D.flip_v else 0
Copy link
Member

@AThousandShips AThousandShips Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put this in the two branches instead, along with the setting of flip_v (it makes the connection with the direction clearer IMO)

Copy link
Contributor Author

@Nazarwadim Nazarwadim Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like this?
image

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected.

Thanks!

@Calinou Calinou merged commit 40ce32c into godotengine:master Oct 30, 2023
@aaronfranke aaronfranke added this to the 4.1 milestone Oct 30, 2023
@Nazarwadim Nazarwadim deleted the fixed_trailGPUParticles2D_DodgeTheCreeps branch November 1, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants