scan if there is a floor

hello guys
i've got a last little problem with my games (after that the engine should be completely ok): i need my "hero" to scan before walking if there is a floor
for example: hero has x= 70 & y= 177. if I go up it will be y= 211
i need to create a rule like
if there is no floor at x=70 & y= 177+34
don't move
i really don't see how can i create that
thx for help
ps: invisible wall can't work with what i wan't to do
i've got a last little problem with my games (after that the engine should be completely ok): i need my "hero" to scan before walking if there is a floor
for example: hero has x= 70 & y= 177. if I go up it will be y= 211
i need to create a rule like
if there is no floor at x=70 & y= 177+34
don't move
i really don't see how can i create that

thx for help

ps: invisible wall can't work with what i wan't to do

Comments