I’m using a modified version of the game from the 2d Roguelike Tutorial . I’ve made only slight modifications to the original scripts. I’ve mainly added new UI elements and scripts to handle those UI elements.
I’m having issues with character movement. In the editor, the characters will mostly move fine, but when I build, all of the characters move, VERY slowly. It takes roughly two full seconds for a character to move into position. Everything else seems to run at full speed, but the cpu usage in the build is much higher than in the editor.
Also, even in the editor, there are still sometimes issues with the player character kind of weaving around and not staying square on a tile, so that if you walk by food it will pick up food on both tiles, etc.
I don’t know why any of this happening. There doesn’t seem to be any bugs in my code that would cause this, and I don’t know why movement would be so much slower in the build rather than the editor, or why cpu usage would jump. Any ideas about what might be causing this?
- YouTube here’s an example of the slow movement in the build. The character also doesn’t seem to always stay within the bounds of the tiles and weaves just as it did in the editor, only much slower.
and here’s an example of the the weaving the player does in the editor.
The character also glides from position to position without stop when holding the button down. And when checking the completed project today, the character seems to stop briefly before going on to the next tile when the button is held down. This behavior seems somewhat random, because even with nothing changed, the player will sometimes move normally.
You can see more about the project at http://www.fragmentalstew.com/
This is a demonstration of the game:
The license of the Roguelike tutorial prevents me from redistributing the project, but I may be able to give you access to to the project if you message or email me.