![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Tomi |
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 _physics_process(delta):
if get_viewport().get_mouse_position().x<position.x:
kovx=position.x-4
elif get_viewport().get_mouse_position().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?
Now I tried to run my app in Android Studio, but I got the following error message:
“The application could not be installed: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES”
What is means?
Tomi | 2021-05-05 08:36