Click to trigger complex animation
Hi I'm absolute new to JQuery and this forum. Also spare me at my bad English.
What I'm trying to do is to get this skeleton character to walk when I click on the screen (or tap on IPAD).
I could just finish a simple animation as a x-axis movement. Here's my code:
$(document).ready(function() {
$('#btn_right').click(function(){
$('#death').animate({
left:'500px'
},'slow');
$('#shadow').animate({
left:'450px'
},'slow');
});
});
I would appreciate much for your help