Answer to Question #28630 in AJAX | JavaScript | HTML | PHP for mmm

Question #28630
i am making the invador game and i want to move the shooter by mouse touch in html5 but i cant here is my code
shooter1.mousemove = shooter1.touchmove = function(data)
{
if(this.dragging)
{
// need to get parent coords..
var newPosition = this.data.getLocalPosition(this.parent);
shooter1.style.x = newPosition.x;
shooter1.style.y = newPosition.y;
}
}
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS