How can the code be tested then?
Can you add some comments to the code saying what it is supposed to do and where it is supposed to do it?
For example: why should the character jump? What tells...
Type: Posts; User: Norm
How can the code be tested then?
Can you add some comments to the code saying what it is supposed to do and where it is supposed to do it?
For example: why should the character jump? What tells...
How can the code be executed for testing? I don't see a main() method.
The code has no comments to describe its logic.
Where is the section that is causing the problem?
Can you explain what the problem is?
Is the character supposed to jump any time but is restricted to when it reaches the enemy?
How can the code be executed for testing? I don't see a main()...
Post the code you are having problems with here on the forum and ask your questions about it. Be sure to wrap the code in code tags.
YOUR CODE HERE
to get highlighting and preserve...