gdscript-playground icon indicating copy to clipboard operation
gdscript-playground copied to clipboard

Incorrect code being executed

Open back2Lobby opened this issue 1 year ago • 0 comments

This code returns "None" in the playground editor output with no error.

extends Node

func _ready():
    if self().x:
        print("hello")
    else:
        print("bye")

But it returns this error in godot:

Cannot call on an expression. Use ".call()" if it's a Callable.

back2Lobby avatar Sep 03 '24 02:09 back2Lobby