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