my jsfiddle:http://jsfiddle.net/Qfe6L/2/
$(window).keypress(function (e) {
if (e.which == 32) {
CreateChuriken();
$(".Shuriken").animate({ left: '+=300px' }, 'slow');
}
});
as you can see if you hit on start button and keep on pressing space in a fast way the counter act weird and the amount of enemies created start to be massive the game enter an infinite loop somewhere but i can't find where can anyone help me please