Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I'm not an expert but I think it'll work when you'll put the motion var to func _ready(). And also you've wrote-

var motion = Vector2()

you must try:

var motion = Vector2(0, 0)

Try that, it must work. If dosen't worked yet tell me what is the error is telling.

Im new to coding well kinda this is the OUTPUT THAT you wont understand

Not that one, when your run paused for this error there must be a new window where details of object of error would seen. I want you to saw the object. If you haven't understood what window I'm talking about just run and take a screenshot of godot when it paused for the error.(But don't take screenshot of your game which is running)