I've built a series of games that run in a visitors centre on a touchscreen.
It's running on a windows 7 pc with a monitor which is touch sensitive.
Everything works fine except for one game where the input refuses to work.
There are 4 on screen buttons (up, down, left, right) which, when pressed, move a ball.
The code is basically like this:
Code:
on(press){moveUp();}
on(release){stopMove();}
on(dragOut){stopMove();}
Code:
function moveUp (){
onEnterFrame = function(){
if(speedY >= -maxSpeed){
speedY -= speedRate;
}}}
This works fine with a mouse, but on a touchscreen nothing happens.
I'm wondering if the on(press) isn't working properly...
Does anyone have any experience with this kind of thing?
Thanks!