actionscript 3 - mouseclick sometimes fails to work -


i used eventlistener mouseevent.click. if click once, wont shoot, when click again shoots. problem within flash or mouse? it's strange. here code fire event.

function fire(m: event)     {         //reset cooldown         //spawn bullet         //set position , rotation of bullet             b.rotation = turret.rotation;             b.x = turret.x;             b.y = turret.y;             //add bullet parent object             parent.addchild(b);     } 


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -