I have the code
let im = runtimeScene.getGame().getInputManager()
let usetouch = runtimeScene.getVariables().get("touch_supported").getAsBoolean()
if(usetouch){
let tstarts = im.getStartedTouchIdentifiers();
runtimeScene.getVariables().get("touches").setNumber(tstarts.length)
}
on mobile screen later. Where the usetouch
is 1 or true and I have retrieved the var touches
and show on the textbox and they are always 0
while I have all my fingers landed on the screen firmly.
The script is located at onScenePreEvents
I have looked into Mouse and touch [GDevelop wiki] and the Test Cases on GDevelop/GDJS/tests at master · 4ian/GDevelop · GitHub but no lucks.:issac: