Hello Minion1. Sorry for late reply (maybe you already have solved your problem, but I'll answer anyway).
Well, we created, for every tipe of terrain, a Java class (for example: a class for grass, a class for the tree, etc). We separated them into two categories: allowable(grass and items) and unallowable(the rest), which represents, respectively, the classes that the player can walk into, and the classes that he can't.
We treated, then, these classes on the act() method. We created a condition that, if the player is moving to a place, then we have to check if this place is an allowable place. If it is, then the player goes through.
Thank you for your comment!
Recent Comments
2013/3/14
Holy Fighters (by HectorNM,João Vitor e robledo)
2011/8/28
Holy Fighters (by HectorNM,João Vitor e robledo)