# Falling true and false problems

**URL:** <https://forum.kirupa.com/t/falling-true-and-false-problems/46850>\
**Category:** Uncategorized\
**Created:** [March 28, 2004, 9:04pm UTC](https://forum.kirupa.com/t/falling-true-and-false-problems/46850 "2004-03-28T21:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frookan](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@frookan](https://forum.kirupa.com/u/frookan)\
**Post date:** [March 28, 2004, 9:04pm UTC](https://forum.kirupa.com/t/falling-true-and-false-problems/46850/1 "2004-03-28T21:04:56Z")

</div>

im making a game but im already having trouble with the first code, i just want the user to fall when he is not touching a floor…i put this code on the user:  
[AS]onClipEvent(enterFrame){  
if(falling=true){  
this.\_y=this.\_y+5}  
if(falling=false){  
this.\_y=this.\_y}  
if(this.hitTest(floor)){  
falling=false}}[/AS]  
theres is no errors but it doesnt stop when it hits the floor
