Hello
I am trying to figure out how to get this player to slide underneath a solid object
Pretty much what I am trying to do is if player performs a slide
if there is no solid object over top of him
then slide normally
But if player is in a slide state but is underneath a slide object
player should remain in slide state until the player is no longer underneath the solid object the exit slide state
or if player is in slide state and exit the slide while underneath a solid object player dies
I am trying to archive either of these scenarios
I'd rather kill that player if he exits the slide while underneath an solid object
But I am also unsure as too how to check for nearest objects the player is underneath or on top of
video explanation and showing of what my problem is
screencast.com/t/nK79XKsasV
Screenshot of the code
screencast.com/t/I941qAsdy9un