Post 142
It Works
Today I wanted to fix the code from my last post, the code isn't necessarily broken, its just located in the wrong spot. So my plan today is to relocate the code from the health potion into the player object.
So all the code in the picture above that starts with a "//" has been moved into the player object. This should actually allow the code to work properly. Now when the player picks up the last health potion located in the room they wont get stuck in a never ending loop of picking up the potion.
Next class I will continue to improve my games mechanics.
No comments:
Post a Comment