커뮤니티로 돌아가기

대화

인간이삼◈하늘구름님의 글에서 이어진 답글 0개

인
인간이삼◈하늘구름@dohun7

트리플 점프 만들기 오류 있으면 댓글 주33 땅 액션 ______________________________________________ onClipEvent (enterFrame) { if (this.hitTest(_root.chr)) { if ((_x+_width/2)-(_root.chr._x-_root.chr._width/2) _y) { _root.chr._y = _y+(_height+_root.chr._height)/2; _root.chr.yspeed *= -0.4; } else { _root.chr.hitground = true; _root.chr._y = _y-(_height+_root.chr._height)/2; _root.chr.yspeed *= -0.4; if (Key.isDown(Key.DOWN)) { _root.chr.yspeed = -1*_root.g; _root.chr.xspeed = 0; } else { if (Key.isDown(Key.UP)) { _root.chr.yspeed = -14; } if (Key.isDown(Key.RIGHT)) { _root.chr.xspeed += 5; } if (Key.isDown(Key.LEFT)) { _root.chr.xspeed -= 5; } } _root.chr.xspeed /= 2; } } } onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { if ((_x+_width/2)-(_root.man._x-_root.man._width/2) _y) { _root.man._y = _y+(_height+_root.man._height)/2; _root.man.yspeed *= -0.4; } else { _root.man.hitground = true; _root.man._y = _y-(_height+_root.man._height)/2; _root.man.yspeed *= -0.4; if (Key.isDown(Key.DOWN)) { _root.man.yspeed = -1*_root.g; _root.man.xspeed = 0; } else { if (Key.isDown(Key.UP)) { _root.man.yspeed = -14; } if (Key.isDown(Key.RIGHT)) { _root.man.xspeed += 5; } if (Key.isDown(Key.LEFT)) { _root.man.xspeed -= 5; } } _root.man.xspeed /= 2; } } } onClipEvent (enterFrame) { if (this.hitTest(_root.uu)) { if ((_x+_width/2)-(_root.uu._x-_root.uu._width/2) _y) { _root.uu._y = _y+(_height+_root.uu._height)/2; _root.uu.yspeed *= -0.4; } else { _root.uu.hitground = true; _root.uu._y = _y-(_height+_root.uu._height)/2; _root.uu.yspeed *= -0.4; if (Key.isDown(Key.DOWN)) { _root.uu.yspeed = -1*_root.g; _root.uu.xspeed = 0; } else { if (Key.isDown(Key.UP)) { _root.uu.yspeed = -14; } if (Key.isDown(Key.RIGHT)) { _root.uu.xspeed += 5; } if (Key.isDown(Key.LEFT)) { _root.uu.xspeed -= 5; } } _root.uu.xspeed /= 2; } } }