• 2 Posts
  • 1.75K Comments
Joined 3 years ago
cake
Cake day: August 17th, 2023

help-circle
  • It’s cool that you enjoyed it! But there’s no need to pretend that this is a binary choice. Guardians of the Galaxy is also capeshit with a stoic woman, yet IMO Gamorra is a much more interesting character than Captain Marvel.

    I also liked many parts of the movie, but some other parts were big enough misses that I’m not really interested in rewatching.



  • IMO this is a great case for Finite State Machines. Unfortunately I can’t provide a GDScript example since I write in C#, but I think there are some assets for this in the asset library. The basic idea is that you define states, and valid transitions between those states (e.g. for a drag’n’drop system given the states idle, dragging and dropped it makes sense for the user to go idle -> dragging, dragging -> dropped and dropped -> idle, but not from idle -> dropped). Then you can separate the state transition logic from the main handler for each state, which I think is what you want, right?

    This pattern can also easily be made reusable, either by having no dedicated logic in the state machine (-> everything is handled through events), or by using an adapter interface that components create and pass into the state machine.

    Let me know if you have questions, or would like to see an example - I can at least provide pseudo code :)

















  • Yeah, they didn’t shoot in black-and-white. Everything was recorded in full color, but Nintendo blocked the release due to the similarity. So a bunch of interns had to manually take a screenshot of every frame, save it, import it into a cracked Photoshop copy, export that, and re-import it into the video editor.