MarcoFazioRandom / Virtual-Joystick-Godot

A simple virtual joystick for touchscreens, for both 2D and 3D games, with useful options.
MIT License
743 stars 81 forks source link

Invalid get index 'sie' (on base: 'TextureRect'). #61

Closed HunterZwer closed 11 months ago

HunterZwer commented 11 months ago

So when I faced with this problem I simple fixed this in file virtual_joystick.gd 58 line:

  1. @onready var _base_radius = _base.sie * _base.get_global_transform_with_canvas().get_scale() / 2

To this:

  1. @onready var _base_radius = _base.size * _base.get_global_transform_with_canvas().get_scale() / 2

Fixed the typo "sie" -> "size"

Let me know if I was wrong