Hello!
I have made my first little app with Godot. This program just move an object towards mouse coordinates. But when I try start it in Leapdroid emulator, it shows me that "Unfortunately myapp has stopped". What's wrong with my code? It is only a few lines and hopefully error free:
extends KinematicBody2D
var kovx: int=position.x
var kovy: int=position.y
var betukeszlet = Control.new().get_font("font")
Called every frame. 'delta' is the elapsed time since the previous frame.
func physicsprocess(delta):
if getviewport().getmouseposition().x<position.x:
kovx=position.x-4
elif getviewport().getmouseposition().x>position.x:
kovx=position.x+4
else:
kovx=position.x
if get_viewport().get_mouse_position().y<position.y:
kovy=position.y-4
elif get_viewport().get_mouse_position().y>position.y:
kovy=position.y+4
else:
kovy=position.y
position.x=kovx
position.y=kovy
#draw_string(betukeszlet, Vector2(4, 4), "JatX: ")
Maybe I configured Android settings badly? But in this case how can it build an .APK?