 |
The Crispy Web The Crispy webs Forums - Doing nothing Since 2006
|
|
| Author |
Message |
Mega Mike
|
| Fri Dec 01, 2006 1:40 am mega omega team |
|
|
this is for the people in the mega omega team only.
the mega omega team is the people who help with the building of the buildings. more to come
members:crispy, chickan-man, shadow, me
i may consider more
sorry for a sort of segregation. |
|
|
|
Crispy
|
| Fri Dec 01, 2006 4:15 pm |
|
|
| have you changed your name klarrann? |
|
|
|
Mega Mike
|
| Fri Dec 01, 2006 7:59 pm |
|
|
yea to help everyone say my name right.
crispy id like you in the club cause u got flash.
chicken man cause i saw he knew a bit about action script.
shadow as my advisor.
and me handling 3d backgrounds.
chiken man you know an actionscripts for moving left and right with the arrow keys?
if this becomes a huge problem ill contact some MMORPG company.
cause they know how to handle this. |
|
|
|
Crispy
|
| Fri Dec 01, 2006 8:16 pm |
|
|
like runescape or warcraft?
also i know a platform game code coz i submitted one to newgrounds |
|
|
|
Mega Mike
|
| Fri Dec 01, 2006 8:24 pm |
|
|
| yeah exactly. |
|
|
|
Crispy
|
| Fri Dec 01, 2006 8:26 pm |
|
|
| so what sort of code do you need? |
|
|
|
Mega Mike
|
| Fri Dec 01, 2006 8:28 pm |
|
|
well like
if u push the left arrow key u move left.
movement scripts mostly. |
|
|
|
Crispy
|
| Fri Dec 01, 2006 8:36 pm |
|
|
will it involve gravity so if you walk off the edge you will fall?
here is the code for that made by a guy called pyro111 on newgrounds
//made by pyro111
// thanks to Vengance for helping
onClipEvent (load) {
grav = 0;
// sets falling speed
speed = 7;
// sets movement speed
jumpHeight = 15;
// sets height that you can jump
scale = _xscale;
// sets size
slowfall = .8;
// sets glide
}
onClipEvent (enterFrame) {
// happens every frame
grav++;
// makes you fall faster
_y += grav;
// makes your _y go up by the varaible grav
while (_root.ground.hitTest(_x, _y, true)) {
// when this is touching the ground
_y--;
// makes the y keep on going up, this enables slopes
grav = 0;
// make it so you dont fall
}
if (Key.isDown(Key.RIGHT)){
// when the d key is down
_x += speed;
// makes the x go up by the speed
_xscale = scale;
// makes it face right
if (_root.ground.hitTest(_x, _y+3, true)) {
// if it is touching the ground
this.gotoAndStop(1);
// goes to frame 1
} else {
// otherwise
this.gotoAndStop(2);
// stops at frame 2
}
} else if (Key.isDown(Key.LEFT)) {
// if that isnt happening and the a key is pressed
_x -= speed;
// makes the x go gown by the speed
_xscale = -scale;
// makes it face left
if (_root.ground.hitTest(_x, _y+3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
// see other code for movign right
} else {
if (_root.ground.hitTest(_x, _y+3, true) && !Key.isDown(79)) {
// if this is touching the ground and o isnt pressed
this.gotoAndStop(3);
// stops at frame 3
}
}
if (Key.isDown(Key.DOWN)) {
// if the s key is down
grav *= slowfall;
// slows down the gravity by multiplying it by the slowfall varialbe
}
if (Key.isDown(79) && !Key.isDown(Key.SPACE) && !Key.isDown(Key.LEFT) && !Key.isDown(Key.RIGHT)) {
// if 0 is down, and a s d w arent
this.gotoAndStop(4);
// goes to frame 4
}
if (Key.isDown(Key.SPACE) && _root.ground.hitTest(_x, _y+3, true)) {
// if w is pressed and it is touching the ground
grav = -jumpHeight;
// makes gravity negative jumpheight, causes jump
_y -= 4;
// makes the y go up by 3
this.gotoAndStop(2);
// stops on frame 2
}
if (_root.ground.hitTest(_x+(_width/2), _y-(_height/2), true) || _root.ground.hitTest(_x+(_width/2), _y-((_height/6)*4), true)) {
_x -= speed;
}
if (_root.ground.hitTest(_x-(_width/2), _y-(_height/2), true) || _root.ground.hitTest(_x-(_width/2), _y-((_height/6)*4), true)) {
_x += speed;
}
if (_root.ground.hitTest(_x, _y-_height, true)) {
grav = 2;
}
// these all check for 2 points along the sides and top, to see if it is hitting a wall
} |
|
|
|
Ultimate axl
Guest
|
| Fri Dec 01, 2006 9:50 pm |
|
|
| Well what were these for? |
|
|
|
Crispy
Guest
|
| Fri Dec 01, 2006 10:07 pm |
|
|
| zero asked for them |
|
|
|
Mega Mike
Guest
|
| Sat Dec 02, 2006 12:49 am |
|
|
uhhh can u explain what each of them are?
i dont no anything about actionscript.
oh yeah thx for the prox thingy.
and sigma, i don tno a polite way to say this but dont i think i mentioned only members of this team could post here.
crispy correct me if i shouldnt have said that. |
|
|
|
Crispy
Guest
|
| Sat Dec 02, 2006 2:30 pm |
|
|
| i didnt quite undertsnad the code myself |
|
|
|
Ultimate axl
Guest
|
| Sun Dec 03, 2006 2:05 am Re: mega omega team |
|
|
[quote="Zero"]this is for the people in the mega omega team only.
the mega omega team is the people who help with the building of the buildings. more to come
members:crispy, chickan-man, shadow, me
i may consider more
sorry for a sort of segregation.[/quote]
You put your self two times crispy. |
|
|
|
Mega Mike
Guest
|
| Tue Dec 05, 2006 11:30 pm |
|
|
x i ment zero
and i cant tell if ur shadow or not cause u and ur bro keep switching names.
and ill consider more if theyll contribute to the sites big flash.
also sinse the site isnt even up yet all every1 has to do is draw there characters.
send them to me in a pm and ill save um on my comp.
crispy u cant use ur current avatar. its too.....creepy. |
|
|
|
UltimateAxl
Guest
|
| Tue Dec 05, 2006 11:50 pm |
|
|
| I used to be Shadow, Zero. My bro keeps on switching names not me. |
|
|
|
| |
|