This Gist was moved into its own Repository at https://github.com/dploeger/godot-migrationnotes
Please fork that repository and send pull request for updates. Thanks!
This Gist was moved into its own Repository at https://github.com/dploeger/godot-migrationnotes
Please fork that repository and send pull request for updates. Thanks!
Another new thing: you can modify the properties of core classes independently for example when using a tween or as an animation track. For example, if you want to tween only the x
position of a sprite you can do:
$Tween.interpolate_property(self, "position:x", position.x, position.x + 100, 2, Tween.TRANS_LINEAR, Tween.EASE_IN)
More info here godotengine/godot#12284
✔️
Thanks, everybody. I've updated the gist.
According to godotengine/godot#15374 (comment)
create
or create_from_data()
must be called after Image.new()
2.1 :
var img = Image.new()
img.lock()
img.set_pixel(x, y, color) # Works
img.unlock()
3.0
var img = Image.new()
img.create(1, 1, false, Image.FORMAT_RGBA8)
img.lock()
img.set_pixel(x, y, color) # Works
img.unlock()
Might want to mention that direct property access/modification is a thing now, as opposed to using setters & getters (unless there's no corresponding property for them, of course).
✔️