+ 12
destination-over or event listener problem
the function.... base_bullet is displaying the bullets behind the drawn image...!!, I tired to fix this problem by adding the globalCompositeOperarion keyword but the results are still the same.... I also discovered that when I removed the window.addEvent..... with a "mousemove" event .. the black spot showed... but that is not what I want to achieve!!š I want the black dot to show where ever the user clicks on the screen š https://code.sololearn.com/Wqau8KFPi41v/?ref=app
5 Answers
+ 5
JaScript I don't understand what you did in the code...
the amount of bugs even increaased š²
+ 3
This is corrected and some reworked code of your attempt. Try to touch the šµ and then somewhere else š
https://code.sololearn.com/Wts5kOV19Zjb/?ref=app
+ 3
TONY(1 MAN ARMY) interesting, putting all together in the html file cancel the problems, thanks.
And now LĢ·Ā£Ā£ YĢ·OĢ·OĢ· NĢ·āLĢ·EĢ· , do you have any bugs?
+ 2
LĢ·Ā£Ā£ YĢ·OĢ·OĢ· NĢ·āLĢ·EĢ· That's unbelievable. Where do you see that?
There is nothing special in the code and everything works fine for me on the iOS devices. Ok, I'm going to investigate this on my ms windows PC.
+ 2
LĢ·Ā£Ā£ YĢ·OĢ·OĢ· NĢ·āLĢ·EĢ· back to the second part of your question, what I done: so in your code you confuse the object properties with input parameters as well global and local variables. And the EventListener cannot resoectively should not to be repeated / animated.
I would like to recommend you to overwork above mentioned topics for bette understanding. I.e. this tutorial can be helpful:
https://www.w3schools.com/graphics/game_canvas.asp