Need help to check under player Simple platformer.

RPlude

New member
Im working on my game for the competition and I ran into a snag. Im using the simple platformer script and have added a custom tile called softTile. Im trying to give my player the ability to destroy the block only when you are standing on it and press down and b.

So far I can stand on the block, press down and B and the block changes to a non solid block. The problem I am having is that I can walk horizontal into the block and press down and B and the block will change or I can jump and press down and be and destroy the block above me if its a softTile.


Im hoping someone may be able to help me out. I need to only destroy the tile if I am standing above the tile.

Thanks in advance!

~R
I
 
Top Bottom