|
Post by Hippani on Jun 24, 2015 9:35:20 GMT
Swipe.hani (596 B) This swipe demo was created with the latest Hippo animator update. Movie -> General var StartSwipeX=0,StartSwipeY=0; Movie -> On Click StartSwipeX=X; StartSwipeY=Y; Movie -> Use Release (Turn On) Movie -> On Release var MoveX=X-StartSwipeX; var MoveY=Y-StartSwipeY; if(MoveX>30){ alert("Swipe Right"); }else if(MoveX<-30){ alert("Swipe Left"); }else if(MoveY>30){ alert("Swipe Down"); }else if(MoveY<-30){ alert("Swipe Up"); }
|
|