Hey guys,
I am making a roguelike with GameMaker and I am trying to do realtime collision based combat. EG: if you run into an enemy it will take health off the enemy based on your damage. The enemy has a timer(say 20 steps) when ever the timer goes off, if he is touching you, he strikes at you and does damage based on his damage stat. The problem I am having is when you are standing still, an enemy can run into you repeatedly and he will just lose health till he dies. how do I make it so that you have to be pressing the button, running into HIM to do damage. If you're standing still, I don't want the player to do damage at all, just take damage.
Thanks guys
Roguelike real time collision combat
Started by joshking518, Jul 11 2012 08:03 PM
2 replies to this topic
#1
Posted 11 July 2012 - 08:03 PM
#2
Posted 11 July 2012 - 08:13 PM
Ok I just added some code to check if a key is pressed, then it will do damage. Else it won't do any. My next question is when I attack the monster, I can just hit it over and over in rapid succession. How can I make the monster bounce away fast or run in the opposite direction for a second?
#3
Posted 12 July 2012 - 02:45 AM
add motion to the monster or something
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











