The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 ViewsOK I'm making a Zelda game and I'm having problems finding a hit test that works..> I have gone through teh AS Main and found one, but my character get stuck and stop before it hits the tree...
http://denvish.net/ulf/1170382090_linksprite.
php this is the game
I spelled Kakariko...KoKarika because it will be a differnet village...
Need help on:
I need Hit tests for the Trees, rocks, and sign
and a Teleport hit test for the left path.... I put a symbol on the left path that teleports ou to the next frame but it doesn't work
onClipEvent (enterFrame) {
if (hitTest(_root.link)) {
gotoAndStop(2);
}
}
Oh wow.
Look it up a little better, kid. There's all kinds of tutorials on hitTest all over Google, and I'd suggest getting a basic grasp on the subject before trying any form of game.
"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe
onClipEvent (enterFrame) {
if (hitTest(_root.link)) {
_root.gotoAndStop(2);
}
}
now that should work
onClipEvent (enterFrame) {
if (this.hitTest (_root.link)) {
_root.gotoAndStop (2);
}
}
I suggest reading up on Actionscript before attempting to make a game. hitTest is one of the basic examples of code you'll find.
postcount +=1;
Newgrounds Photoshop Headquarters || Don't use MS Paint! Use Aviary!
SING US A SING YOU'RE THE PIANO MAN
You should probably make a standing frame for when Link isn't moving. It looks awkward having him run in place like that.
"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe
At 2/1/07 10:06 PM, uyersuyer wrote: You should probably make a standing frame for when Link isn't moving. It looks awkward having him run in place like that.
He's jogging for his health. :)
Yeah, from a graphical standpoint, the game doesn't look so good. Link's downward running animation moves down when he runs, then loops back up suddenly.
postcount +=1;
Newgrounds Photoshop Headquarters || Don't use MS Paint! Use Aviary!
SING US A SING YOU'RE THE PIANO MAN
onClipEvent (enterFrame) {
if(_root.bianliang==0){
if(Key.isDown("xxx"){
_root.girl._x..................
..............................
onClipEvent (enterFrame) {
if(_root.girl.hitTest.(_root.tree)){
_root.bianliang=1
}else{
_root.bianliang=0
}
}
give root a Variable txt ,name bianliang
sorry English is not good
Thanks Kart-Man and Lone-Ronin1.....it worked
At 2/1/07 10:06 PM, uyersuyer wrote: You should probably make a standing frame for when Link isn't moving. It looks awkward having him run in place like that.
I have one, but when I enter it in. Links Animations would just stop...He would still face right if you go right but it will look like he is sliding across the stage!
At 2/1/07 10:23 PM, Hylian-Mafia wrote: Thanks Kart-Man and Lone-Ronin1.....it workedAt 2/1/07 10:06 PM, uyersuyer wrote: You should probably make a standing frame for when Link isn't moving. It looks awkward having him run in place like that.I have one, but when I enter it in. Links Animations would just stop...He would still face right if you go right but it will look like he is sliding across the stage!
You need to set your code so that it goes to the a different frame of the movieclip whenever you want him to move and then go back when he's standing still.
"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe
you mean like this