1
Programming / Timing and monster issues
« on: December 01, 2010, 05:16:55 PM »
So, I'm not a very good programmer, and I decided to make a roguelike a couple days ago.
I have two problems.
First, the timing, it feels weird using a for loop to slow down the game so you aren't just flying across the screen. I could use some help making it like crawl, where you can hold the arrow and go quickly after a second or so, or rapidly press the arrow for precision.
Second, my monsters, I have them recognizing the player, but not each other. I need help setting up how I should initialize them so that they can see each other. I am also having issues with their death, currently it's a function that puts them in the top left corner and changes their symbol to a wall and prevents them from moving, but I know that's probably not going to work if I want to respawn monsters.
I have two problems.
First, the timing, it feels weird using a for loop to slow down the game so you aren't just flying across the screen. I could use some help making it like crawl, where you can hold the arrow and go quickly after a second or so, or rapidly press the arrow for precision.
Second, my monsters, I have them recognizing the player, but not each other. I need help setting up how I should initialize them so that they can see each other. I am also having issues with their death, currently it's a function that puts them in the top left corner and changes their symbol to a wall and prevents them from moving, but I know that's probably not going to work if I want to respawn monsters.
