endlessm / godot-block-coding

Block-based visual programming plugin for Godot
https://godotengine.org/asset-library/asset/3095
MIT License
279 stars 20 forks source link

Make SimpleCharacter more flexible #215

Closed manuq closed 1 month ago

manuq commented 1 month ago

What Happened

SimpleCharacter is inflexible because it imposes a collision shape. Even if no texture is provided, it fallbacks to a 100x100 px square. Also the texture can't be resized from the canvas, but that can be workarounded by adding a Sprite2D as child. So let's do the same with the collision node: don't impose one.

Still maintaining the simplicity of passing a texture image and automatically gain a collision box matching the texture size.

How to Reproduce

Explained above.

Block Coding Plugin Version

main

Godot Engine Version

v4.3

Operating System

Endless OS

Logs or command-line output

No response

Anything else?

No response

manuq commented 1 month ago

Fixed by #216