Click here to Skip to main content
15,909,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello.
I am currently a beginner in C#.I recently developed a small game and I have got a problem in it.
It is somewhat difficult to explain the problem without you all playing the game.So please take some time and download it.

.exe-(No exe files please, download and run an unknown exe file is not advised)

project-http://speedy.sh/wVtk6/ConsoleApplication1.csproj[^]

So as you can see,Hero and monster attack each other once at a time.But sometimes,they attack each other multiple times at a time instead of one.

Pics:
correct(single attack)-
http://s10.postimg.org/p8ney2v8p/pic1.png[^]
http://s12.postimg.org/5f5risi59/pic2.png[^]

wrong(multiple attacks)-
http://s27.postimg.org/o0ww07oyr/pic3.png[^]
http://s29.postimg.org/ppujfqsdj/pic4.png[^]

I want them to attack each other only once not multiple times at a single time.
Any help would be GREATLY appreciated.
Posted
Updated 16-Aug-14 8:17am
v3
Comments
[no name] 16-Aug-14 11:38am    
No sane person is going to download an unknown program from an unknown source and run it. Ever hear of malware? That is one way that it's spread around. Learn to use the debugger.
Sergey Alexandrovich Kryukov 16-Aug-14 14:16pm    
Strictly speaking, there is no danger in it at all. What malware? in the form of the source code? (I wonder, does OP really think that downloading of a *.csproj file gives some source code, or is it in fact the code.) Sometimes, I downloaded even the EXE files, because I know that I can be careful enough not to run it.

But of course, it's hard to believe that anyone would be interested to download it. Too boring... Not a question... :-)

—SA
[no name] 16-Aug-14 15:18pm    
I did say "no sane person" :-) Malware as in the link to the EXE he posted.
Sergey Alexandrovich Kryukov 16-Aug-14 21:20pm    
Did he post an EXE? Wow! Still, I would be able to download it, but way? (It says *.csproj.) Running it is out of question. I'm curious what would OS think someone would be doing with this download..? :-)
—SA
[no name] 16-Aug-14 21:51pm    
Yeah. The posting has been edited to remove the link to the EXE. Apparently the OP thinks we are a debugging service and wants someone to download his project, debug and fix it for him. But as you say, it's just a project file and not the source itself so there is really nothing here.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900