Umm...did you hear that the forums won't get archived? That's so awesome
Let's celebrate it with a new picture^^
I reworked the area between desert and deku prison + between desert and mountains. Now you could think that this is unnecessary, because the player never sees this in his gameplay....but let me say you...yes, he can ^^
I also reworked some other areas, but I will show more in the upcoming video ^^
The Meaning of Life, the Universe, and Everything.
Join Date:
7/6/2011
Posts:
281
Minecraft:
Gouloudrouioul
Member Details
Okay I'm a bit lost... I can't seem to make a running script that prevents the player to jump more than 2 blocks if the player is running.
I tried a lot of things but I'm still new to scripting. Here's what my code looks like :
if (keyboard.isKeyDown(57) && keyboard.isKeyDown(29)) {
player.setMoveSpeed(0);
} else if (keyboard.isKeyDown(29)) {
player.setMoveSpeed(3);
} else {
player.setMoveSpeed(1);
}
The problem is my moveSpeed change to 0 when I jump while running, but the player still has the momentum from running, so it isn't reliable... And I don't know how to work around that.
Also "!player.onGround' doesn't seem to do much for me.
The Meaning of Life, the Universe, and Everything.
Join Date:
7/6/2011
Posts:
281
Minecraft:
Gouloudrouioul
Member Details
Thanks for sending me your script, it helped me understand Velocity xD
Okay so, actually your script has the same issues than mine : if the player press very briefly the space bar, the momentum keeps happening and the player can jump more than 2 blocks :/
I don't understand how I can prevent this from happening... I have the feeling it may not be possible x)
(yes !player.onGround wasn't there because it didn't work, so I sent you the script that worked)
Thanks for sending me your script, it helped me understand Velocity xD
Okay so, actually your script has the same issues than mine : if the player press very briefly the space bar, the momentum keeps happening and the player can jump more than 2 blocks :/
I don't understand how I can prevent this from happening... I have the feeling it may not be possible x)
(yes !player.onGround wasn't there because it didn't work, so I sent you the script that worked)
I implemented player.onGround into my script and it works perfect c:
The Meaning of Life, the Universe, and Everything.
Join Date:
7/6/2011
Posts:
281
Minecraft:
Gouloudrouioul
Member Details
Indeed now player.onGround works for me, don't know why it didn't work earlier
But... still the same problem :/
If you press space and release shift at the same time, the script doesn't enter the condition that says the player is running, and the player still get to jump with all the velocity...
The only fix I found is to put this line onUpdate :
if (!player.onGround) {
player.setVelocity(player.getVelocity().x*0.5,player.getVelocity().y,player.getVelocity().z*0.5);
}
But it does it also when walking, so it's not what we want x)
Indeed now player.onGround works for me, don't know why it didn't work earlier
But... still the same problem :/
If you press space and release shift at the same time, the script doesn't enter the condition that says the player is running, and the player still get to jump with all the velocity...
The only fix I found is to put this line onUpdate :
if (!player.onGround) {
player.setVelocity(player.getVelocity().x*0.5,player.getVelocity().y,player.getVelocity().z*0.5);
}
But it does it also when walking, so it's not what we want x)
I will tell you if I find any fix for this
Hey, I have an idea! You could use the keyboard.keyJumpScript("script.js") method. It triggers everytime, you jump ^^
Umm...did you hear that the forums won't get archived? That's so awesome
Let's celebrate it with a new picture^^
I reworked the area between desert and deku prison + between desert and mountains. Now you could think that this is unnecessary, because the player never sees this in his gameplay....but let me say you...yes, he can ^^
I also reworked some other areas, but I will show more in the upcoming video ^^
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Umm...did you hear that the forums won't get archived? That's so awesome
That's very very very good news
Beautiful, isn't it? xD
Well...in development and seeable in the upcoming first TT showcase (hopefully next Sunday) ^^
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
That looks very nice.
Video is in development,but time is rare....atm 6 minutes video...about 50% finish...it's definitely coming soon
Edit 1: Now 8 1/2 minutes long, about 70% finish ^^
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Video is finish! Will publish it at 8pm CET ^^
The first TT Showcase c:
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
There it is
^^
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
That's awesome !! ^^
Hey, do you know how to get if the player is in the air ? I couldn't find anything on the AdventureCraft script guide about that...
Sure. I think it was like this:
if(!player.onGround)
{
}
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Okay I'm a bit lost... I can't seem to make a running script that prevents the player to jump more than 2 blocks if the player is running.
I tried a lot of things but I'm still new to scripting. Here's what my code looks like :
if (keyboard.isKeyDown(57) && keyboard.isKeyDown(29)) {
player.setMoveSpeed(0);
} else if (keyboard.isKeyDown(29)) {
player.setMoveSpeed(3);
} else {
player.setMoveSpeed(1);
}
The problem is my moveSpeed change to 0 when I jump while running, but the player still has the momentum from running, so it isn't reliable... And I don't know how to work around that.
Also "!player.onGround' doesn't seem to do much for me.
Umm...well...it's a bit too difficult for me rn to explain it xD
So I just send you my public running script ^^
http://www.mediafire.com/file/sl9ye36kpcvz94a/Stamina_v.0.1.5.zip/file
It includes a fix for that.
Otherwise, if you want a script which works without stamina and only for running, tell and I will write the script sepcifically for you ^^
Umm.....I don't see the condition (if(!player.onGround)) in your example here
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Thanks for sending me your script, it helped me understand Velocity xD
Okay so, actually your script has the same issues than mine : if the player press very briefly the space bar, the momentum keeps happening and the player can jump more than 2 blocks :/
I don't understand how I can prevent this from happening... I have the feeling it may not be possible x)
(yes !player.onGround wasn't there because it didn't work, so I sent you the script that worked)
I implemented player.onGround into my script and it works perfect c:
Try it: http://www.mediafire.com/file/dyh7de7nl40gsul/Stamina_v0.1.6.zip/file
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Indeed now player.onGround works for me, don't know why it didn't work earlier
But... still the same problem :/
If you press space and release shift at the same time, the script doesn't enter the condition that says the player is running, and the player still get to jump with all the velocity...
The only fix I found is to put this line onUpdate :
But it does it also when walking, so it's not what we want x)
I will tell you if I find any fix for this
Hey, I have an idea! You could use the keyboard.keyJumpScript("script.js") method. It triggers everytime, you jump ^^
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Oh nice idea ! I'll tell you if this works
I have a question : how did you manage to remove the hearts that display your health from the bottom of the screen ?
in your gui folder you should have a file named "icons.png". There you can see the hearts. Just remove them from the image and they won't show again.
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
I showed a friend the current status of my map with all it's new features and stuff and he said that it could be a real game
I'm really hyped to finally show you the next playable version of it c:
But time to work on it is rare....and my motivation is an up and down, like a rollercoaster...so I hope you have still patience.
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
Still alive!
It's too long ago that I posted something....well...here is a little development screenshot:
I'm still working on it, but not as much as I could. I hate those phases, without any motivation >.<
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!
The new intro sequence is now finish and I think much better than the old one ^^
So much effort for this little piece...but worths it
My new "TLoZ - Tael's Tale" Forum page is here!
Newest TT showcase:
https://www.youtube.com/watch?v=pofGxxvMU1U
Let's make Adventurecraft great again! Development of AC continues!