I was right last class, the problem was because I didn't center my sprite in my game.
Now it looks good.
The rest of the class I was looking at some tutorials of how to fix some bugs such as: the enemy idle path being the same every time I play the game. So to fix this I had to put randomize(); at the beginning of the code. It's that easy to fix and make everything random :).
Tomorrow I will try to add an attack to the game.
No comments:
Post a Comment