How can i check if my object can move? I want to avoid that i get this error fr example: Kara cant move because he cant push the mushroom! Thanks
if (getOneObjectAtOffset(Mushroom.class, 5, 0) {
//there is a Musroom object on your right;
}
if (getOneObjectAtOffset(Mushroom.class, 0, 5) {
//there is a Musroom object underneath you;
}
//...