Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
devlogs:22_5_2022 [2022/05/22 02:37] root |
devlogs:22_5_2022 [2023/10/19 15:25] (current) |
</code> | </code> |
| |
Then all I do in the animation update is set a variable quack equal 0 or 16 based on if the button is played. We then will play the idle/run frame + quack. If the quack button is not held this will be the initial animation otherwise it will add 16 and play the quack animation. This works clean while the player is running or jumping as the duck body keeps its current motion and only the mouth snaps to its place.((the one small downside is that the mouth wont always smoooothly animate.)) | Then in the animation update a variable "quack" equals 0 or 16 based on if the button is played. We then will play the idle/run frame + quack. If the quack button is not held this will be the initial animation otherwise it will add 16 and play the quack animation. This works clean while the player is running or jumping as the duck body keeps its current motion and only the mouth snaps to its place.((the one small downside is that the mouth wont always smoooothly animate.)) |
| |
<code lua> | <code lua> |
| |
Yeaaa that was bascially my weekish and day. Hope I didn't forget my rust. Oof | Yeaaa that was bascially my weekish and day. Hope I didn't forget my rust. Oof |
| |
| btwdubs nglw/btc here is the link to the live cart.. [[https://quackypaddy.com/duckgame/|These words right here, please and thank you]] |
| |
~~DISCUSSION~~ | ~~DISCUSSION~~ |