This is my first Coding question, so please let me know what info you guys need to help me.
So im making a game like Mr.Driller (http://www.youtube.com/watch?v=GnphMAgy4LI) and im having some trouble with the character movement.
if (OverlapTester.pointInRectangle(rightArrowRectangle,
touchPoint)) {
for (int j = 0; j < world.blocks.size(); j++)
world.player.digRight(world.blocks.get(j));
}
its quite simple:
first it checks if the touchPoint is in the right arrow on the screen (Android)
then looks for the block that is at 1 float distance X and the same Y
if it founds it, it removes it.
Now what i dont get how to do is to move the character on a second touch if block doenst exist.
The physics is not the best, im not an skilled coder, if you have a physics engine i could use, its welcomed.
Im using a custom framework builded with Beginning Android Games (a book).
Thanks!
i hope i was clear.