We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This file is formatted correctly:
extends Node func _physics_process(delta: float): var move_target := Vector2( Input.get_action_strength("right") - Input.get_action_strength("left"), Input.get_action_strength("forward") - Input.get_action_strength("backward") )
Now add a method call on the end:
extends Node func _physics_process(delta: float): var move_target := Vector2( Input.get_action_strength("right") - Input.get_action_strength("left"), Input.get_action_strength("forward") - Input.get_action_strength("backward") ).rotated(20)
gdformat collapses it into one line, breaking the line length restriction:
gdformat
extends Node func _physics_process(delta: float): var move_target := Vector2(Input.get_action_strength("right") - Input.get_action_strength("left"), Input.get_action_strength("forward") - Input.get_action_strength("backward")).rotated( 20 )
The text was updated successfully, but these errors were encountered:
Actually that's expected - due to several Godot bugs (like e.g. https://github.com/Scony/godot-gdscript-toolkit/blob/master/tests/potential-godot-bugs/multiline-attribute-expression.gd) it's not possible to implement it the way I want.
Thus it will be addressed for 4.0 or 4.x.
4.0
4.x
Sorry, something went wrong.
As a workaround, I can only recommend introducing an extra variable or modifying move_target inplace.
move_target
Thanks! Do you happen to know which Godot issues, so I can track them?
@rcorre the issues are solved in Godot's master branch already.
master
fixed on master by f99c69d
No branches or pull requests
This file is formatted correctly:
Now add a method call on the end:
gdformat
collapses it into one line, breaking the line length restriction:The text was updated successfully, but these errors were encountered: