커뮤니티로 돌아가기

대화

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

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

색다른 점프게임 액션; ㅋ;; 캐릭터는 강좌방에서; 땅 액션--------------------- 그냥땅 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.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.chr)) { this._y+=2; _root.chr._y+=2; } } 닿으면 위로 올라가는 땅 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.chr)) { this._y-=2; _root.chr._y-=2; } } 이건 닿으면 위로 바로 올라가는 땅 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.chr)) { this.gotoAndPlay(2);; _root.chr._y-=202; } } 또 위 땅은 편집창으로 들어가서 2프레임 부터 폭발? 효과 같은걸 넣어주세요. 화살표 onClipEvent (enterFrame) { _x = _root.chr._x; if (_root.chr._y -5) { xspeed -=1; } } hitground = false; if (_y>450) { _root.gotoAndStop(1); } } 프레임 g=0.9; stop(); _root.chr.yspeed = -1*_root.g; _root.chr.xspeed = 0; 컴이 똥컴이라 그런지 강좌가 안올려지네요;;;;