저 좀 도와주세요 ㅠㅠ
![profile_image](https://www.zuzunza.com/data/member_image/bo/boon000.gif?1698521386)
2015-06-10 18:07
1,914
0
0
1
본문
제가 점프점프게임 만드느라 요즘 액션에 대해 알아보고 있거든요?
액션찾고 그렇게 따라했는데 한가지가 안된 거에요. 캐릭터가 이동할 때(점프아님)
캐릭터가 옆으로 납작해져요. 왜 그런거죠?
기본액션-_root.g=1.3; //20_root.hhhhh=550; //3000
캐릭터액션-onClipEvent (enterFrame) {if (Key.isDown(Key.RIGHT)) {this._x += 7;}if (Key.isDown(Key.LEFT)) {this._x -= 7;}if (Key.isDown(Key.SPACE) && _root.gra == 0 && _root.chk == 0) {_root.chk = 1;}if (_root.chk == 1) {this._y -= 6-_root.gra;_root.gra += 0.3;}if (_root.chk == 0) {_root.gra = 0;this._y += 10;}}onClipEvent (load) {_root.chk = 0;_root.gra = 0;}
onClipEvent (enterFrame) {if (Key.isDown(Key.RIGHT)) {this._x += 5;this._xscale=100;}}onClipEvent (enterFrame) {if (Key.isDown(Key.LEFT)) {this._x -= 5;this._xscale=-100;}}
액션에 문제있는건가요 아니면 뭔가 잘못한건가요? 참고로 저 캐릭터 붓틀로 그렸습니다
액션찾고 그렇게 따라했는데 한가지가 안된 거에요. 캐릭터가 이동할 때(점프아님)
캐릭터가 옆으로 납작해져요. 왜 그런거죠?
기본액션-_root.g=1.3; //20_root.hhhhh=550; //3000
캐릭터액션-onClipEvent (enterFrame) {if (Key.isDown(Key.RIGHT)) {this._x += 7;}if (Key.isDown(Key.LEFT)) {this._x -= 7;}if (Key.isDown(Key.SPACE) && _root.gra == 0 && _root.chk == 0) {_root.chk = 1;}if (_root.chk == 1) {this._y -= 6-_root.gra;_root.gra += 0.3;}if (_root.chk == 0) {_root.gra = 0;this._y += 10;}}onClipEvent (load) {_root.chk = 0;_root.gra = 0;}
onClipEvent (enterFrame) {if (Key.isDown(Key.RIGHT)) {this._x += 5;this._xscale=100;}}onClipEvent (enterFrame) {if (Key.isDown(Key.LEFT)) {this._x -= 5;this._xscale=-100;}}
액션에 문제있는건가요 아니면 뭔가 잘못한건가요? 참고로 저 캐릭터 붓틀로 그렸습니다
0
1
로그인 후 추천 또는 비추천하실 수 있습니다.
최신글이 없습니다.
최신글이 없습니다.
댓글목록0
댓글 포인트 안내
첫댓글 포인트
첫 댓글을 작성하는 회원에게 최대 50해시 이내에서 랜덤으로 첫댓글해시를 지급합니다.
지뢰폭탄 포인트
지뢰폭탄이 총10개 매설되어 있습니다.
댓글을 작성하여 지뢰폭탄을 발견하면 최대 10해시 이내에서 랜덤으로 지뢰제거 보상해시로 지급합니다.
행운 포인트
댓글을 작성하면 1% 확률로 최대 50해시 이내에서 랜덤으로 행운의해시를 지급합니다.