ConditionalCoder<p>I love <a href="https://mastodon.gamedev.place/tags/Godot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Godot</span></a>'s <a href="https://mastodon.gamedev.place/tags/setter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>setter</span></a> and <a href="https://mastodon.gamedev.place/tags/getter" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>getter</span></a> methods! I'm not sure if this type of thing is available in other languages I've used, but I first came across them in Godot and I find them to be so helpful.</p><p>In my game the player can choose the colour of their 'character'. So I have a variable for that, and it has a setter method that also changes the character's sprite. Very cool!</p><p><a href="https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html#properties-setters-and-getters" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.godotengine.org/en/stable</span><span class="invisible">/tutorials/scripting/gdscript/gdscript_basics.html#properties-setters-and-getters</span></a></p><p><a href="https://mastodon.gamedev.place/tags/GodotEngine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GodotEngine</span></a> <a href="https://mastodon.gamedev.place/tags/GameDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GameDev</span></a> <a href="https://mastodon.gamedev.place/tags/Godot4" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Godot4</span></a> <a href="https://mastodon.gamedev.place/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.gamedev.place/tags/GDScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GDScript</span></a></p>