PDA

View Full Version : adventure action thing



Groardified
May 26th, 2004, 03:01 PM
Right I'm creating a game of epic proportions. There are two things I request as I'm not sure on how to do them.
onClipEvent (load) {
grav_y = 0;
jumping = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
grav_y = 15;
jumping = true;
}
if (jumping == true) {
grav_y -= 1;
if (grav_y<=-7.5) {
grav_y = -7.5;
}
this._y -= grav_y;
}
if (_root.ground.hitTest(this._x, this._y+45, true)) {
grav_y = 0;
jumping = false;
}
}
Thats the actionscript I'm using for my mc. But when the character jumps I want the characters pose to change, when it is in the air and when it hits the ground.
The other thing I'm stuck on is creating parametres for the character, so that it stops moving at certain points (at the edges of the ground and such). Any help on either/ both will be great.

lucas92
May 27th, 2004, 12:33 PM
check out the book Building Great Flahs MX games and go to the chapter on how to build the game flasherman. It will tell you everything. If you cannot get this book tell me and i will post the things you need. I would now but it might take awhile

Groardified
May 27th, 2004, 01:32 PM
Nope, I don't have that book. If you could post it, It would be most appreciated.

signifer123
May 27th, 2004, 06:59 PM
yuo wnt him to post a 300 page book

lucas92
May 27th, 2004, 07:39 PM
When i have got the time i will surmarize what to do. Maybe this weekend