scan if there is a floor

enixenix Member Posts: 11
edited November -1 in Working with GS (Mac)
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 :(

Comments

  • old_kipperold_kipper Member Posts: 1,420
    You could do a simple test with your hero firing invisible 'scan' objects and see if they return a hit floor or 'non-floor', within a certain distance.
Sign In or Register to comment.