5 more quick GDScript tips

Published: 03 August 2022
on channel: The Shaggy Dev
4,557
284

Let's look at five small tips for working with GDScript that you may find useful.

Better float comparison: 00:00
Wrapping values: 00:53
Smoother interpolation: 01:14
Custom errors and warnings: 01:32
Mapping values to a range: 01:58

Code snippets: https://shaggydev.com/2022/08/02/more...

Documentation links
Floats in Godot: https://docs.godotengine.org/en/stabl...

is_equal_approx: https://docs.godotengine.org/en/stabl...

is_zero_approx: https://docs.godotengine.org/en/stabl...

wrapf: https://docs.godotengine.org/en/stabl...

wrapi: https://docs.godotengine.org/en/stabl...

smoothstep: https://docs.godotengine.org/en/stabl...

push_error: https://docs.godotengine.org/en/stabl...

push_warning: https://docs.godotengine.org/en/stabl...

range_lerp: https://docs.godotengine.org/en/stabl...


Watch video 5 more quick GDScript tips online, duration hours minute second in high quality that is uploaded to the channel The Shaggy Dev 03 August 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 4,557 times and liked it 284 visitors.