You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to make a project which called 'Your first 2d game' in the godot api documentation with py4godot instead of gdscript. When I try to press the button to make sprite move, the game window crashs. here is the code:
`python
from py4godot.classes.AnimatedSprite2D.AnimatedSprite2D import AnimatedSprite2D
from py4godot.classes.Input.Input import Input
from py4godot.classes.Node2D.Node2D import Node2D
from py4godot.methods import private
from py4godot.signals import signal, SignalArg
from py4godot.classes import gdclass
from py4godot.classes.core import Vector3, Vector2, StringName, NodePath
from py4godot.classes.Area2D.Area2D import Area2D
@gdclass
class Player(Area2D):
node_path: NodePath
speed: int = 400
str_up: StringName
str_down: StringName
str_left: StringName
str_right: StringName
Hi, I want to make a project which called 'Your first 2d game' in the godot api documentation with py4godot instead of gdscript. When I try to press the button to make sprite move, the game window crashs. here is the code:
`python
from py4godot.classes.AnimatedSprite2D.AnimatedSprite2D import AnimatedSprite2D
from py4godot.classes.Input.Input import Input
from py4godot.classes.Node2D.Node2D import Node2D
from py4godot.methods import private
from py4godot.signals import signal, SignalArg
from py4godot.classes import gdclass
from py4godot.classes.core import Vector3, Vector2, StringName, NodePath
from py4godot.classes.Area2D.Area2D import Area2D
@gdclass
class Player(Area2D):
node_path: NodePath
speed: int = 400
str_up: StringName
str_down: StringName
str_left: StringName
str_right: StringName
`
Is there anything wrong in the code? if yes, please point out; if not, please fix the bug.
The text was updated successfully, but these errors were encountered: