Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Hernán Montes |
I’m making a game that consists of dragging objects and placing them in the right place (puzzle type). Once it is assembled, you will see a flow chart.
When I run the program on my computer it works perfectly, but when I want to export the game to android, it exports without any error.
I install the game in my cell phone, it loads correctly, but when I get to the scene where I have to select the object and drag it to the right place is the problem, because in the first instance you can’t select the object immediately, then if you want to choose another object in logar it’s impossible.
You can see it better in the video that is in this direction:
https://youtu.be/ycDcHgcJq6o
Please, if you can help me correct this mistake.
You can find the coding at the following address for download : http://programacionybasededatos.vzpla.net/godot/practica_en.html
The project link at the above address just leads to a 404
error…
jgodfrey | 2020-03-07 15:21
http://programacionybasededatos.vzpla.net/godot/archivos/dfd_v1/dfd_suma3_v1.zip.tar
Didn’t check the whole project but I had a short look at “obj_script_DnD.gd”
At least the functions _on_area_mouse_entered/exited won’t work (unless you actually attach a mouse to the android device). Android touch screen won’t generate a mouse over as they don’t notice your finger hovering over the display.
Any mouse click and move events are only emulated (if checked in the project settings) by godot using touch events.
Also Drag & Drop is difficult on touch screen devices. Unless the dragged item is bigger than your finger. Maybe you could enlarge the object while it is dragged.
wombatstampede | 2020-03-07 16:14