Hey guys, my friend just gave me a copy of your product for my birthday. I checked it out, and i love it. Love how you just have to write one line of code to get what would take 20 lines of code in other languages (C, C++, Java, etc.)
Now i have this code, i have made several other games, and am making a small battle system, where the player presses space while theyre touching the npc, and the npc takes damage. I have made the system fine, except that you can hold down space, and the fight will and SUPER fast. I want to make it so when you press space, the damages for the player and enemy are displayed, until you press it again, and once you press it again, it updates that info. Heres the code for the part for combat. Just expect all my variables to be in there

. If you want the full code, ill do it, but this post is already long enough.
If Object collision(10,12)>0
print "Hey Man!"
text 0,30, "This Guy has " + str$(hp#) + " health"
If KeyState(57)=1
damage# = RND(str#)
text 0,85,"You attack the enemy for " + str$(damage#)
hp# = hp#-damage#
If hp# <= 0
hide Object 12
position object 10,X#,11,Z#
EndIf
damage# = RND(3)
text 0,115,"He attacks you for " + str$(damage#)
playerhp# = playerhp#-damage#
If playerhp# <= 0
text 0,145, "You is dead"
Wait key
EndIf
EndIf
EndIf
I know how the wait ... code works, but i dont know where to put it in there to do what i want it to do.
Also, dont worry about any beginner crap i have, I just want to worry about how to get the above to work. Dont try and fix something thats not broken.
Bellator Quest 3d: Small RPG Under Development (looking for team *hint hint*) Plan on turning into MMoRPG once finished