Carrot cutting animation + hooked to nanoKEY2!!
Art / animations
I used Aseprite to make the cutting board and the carrot graphics! I made each cut of the carrot a different image to make this work. Now there is a visible cutting animation for carrots!
I timed position changes, rotations, and modulation using AnimationPlayer.
Currently, the animation steps are triggered by a ui_accept input. I’ll change it to be musical chords that the player has to time perfectly as my next update.
Hooked controls to nanoKEY2
I looked into how MIDI inputs are controlled by Godot, and it doesn’t natively detect MIDI inputs from the Input Map in Project Settings, so I had to create a script that detects MIDI input and maps it onto a default Godot input like ui_accept and ui_left etc!
But now it’s working really well :DDDD
Challenges
- It was incredibly time consuming to key frame each individual position but hopefully I can just reuse these frames now and just replace the textures because I left the names generic for modularity
- I didn’t understand how MIDI inputs worked and matching them to other native inputs in Godot so it was tough understanding how to do it (so many diff things like MIDI_MESSAGE_NOTE_OFF/ON that I had to learn)
Next Steps
- I’m going to be adding the chords timing feature so that cutting is actually hard and not just a matter of ui_accept lol
Stay tuned!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.