Ok this is simple game and simple question.
I have laptop and i added mousedown event that responsible for projectile to shot, BUT IT DOESNT SHOT THE PROJECTILE FOR SOME REASON, HELP ME
I attached the game
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 30, 2012, 6:03 PM
I suspect that the MouseMove and MouseDown events are occurring too close together and the code in the latter eventhandler is getting lost.
Try handling the MouseUp event instead of MouseDown which seemed to work OK when I tried it just now.
VulpesPosted Dec 31, 2012, 6:24 AM
As it seems to be working OK with MouseUp, I'd leave it as it is.
Unless a high degree of accuracy is needed, I'm a big fan of the Windows Forms timer which runs on the UI thread and so you don't need to worry about inter-thread communication which can be a headache, particularly with Windows Forms applications.
Prime bPosted Dec 30, 2012, 7:33 PM
You liked the way the game is made?
Any changed you would apply?
Somebody on other forum told me to use thread instead of timer
Prime bPosted Dec 28, 2012, 2:56 PM
Prime bPosted Dec 27, 2012, 1:12 PM
Well just download it from this link
http://www.4shared.com/rar/EPqDla1s/Canon1.html
Amit ChoudharyPosted Dec 27, 2012, 3:48 AM