# PLatformer

**URL:** <https://forum.kirupa.com/t/platformer/153548>\
**Category:** programming\
**Created:** [July 2, 2005, 9:04am UTC](https://forum.kirupa.com/t/platformer/153548 "2005-07-02T09:04:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KIERIOSHIMOTO](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@KIERIOSHIMOTO](https://forum.kirupa.com/u/KIERIOSHIMOTO)\
**Post date:** [July 2, 2005, 9:04am UTC](https://forum.kirupa.com/t/platformer/153548/1 "2005-07-02T09:04:27Z")

</div>

he all im working on this little platformer, im not very far through yet i’ve got the guy animated and moving, ive got the platform suporting him, (the horizontle platform) but i cant seem to make it so he cant run through the verticle platform, here is my code

//if the guy is touching the platform  
if ( hitTest(\_root.platform) && jump == 0 && moveY \> 0) {  
moveY = 0;  
//allign the guy to the top of the platform  
while (hitTest(\_root.platform) ) {  
\_y–;  
}  
any help will be apreciated
