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

the value of bullet_direction is overwritten by Direction #349

Open
wangluodaxia opened this issue Dec 18, 2024 · 1 comment
Open

the value of bullet_direction is overwritten by Direction #349

wangluodaxia opened this issue Dec 18, 2024 · 1 comment

Comments

@wangluodaxia
Copy link

wangluodaxia commented Dec 18, 2024

image

@Phazorknight
Copy link
Owner

This is currently done to make "sticky projectlies" stick in objects in the direction they travelled from. But yeah, this should prob be set under a condition check.

Vroodot added a commit to Vroodot/Cogito that referenced this issue Feb 13, 2025
Minor bug fix to address Phazorknight#349

`deal_damage` function will now pass in pre-existing variables as default arguments with the option to override them still being available.
For example, you can either call `deal_damage(collider)` or
`deal_damage(collider, new_direction, new_position, is_sticky)` and either should work as intended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants