Let's Add Underwater Physics to Game Builder Garage so this Person can find Treasure (Tutorial)

  Рет қаралды 26,391

DaveNodon

DaveNodon

Күн бұрын

DROP ANCHOR!
Today we are building some underwater physics and movement for our player character in Game Builder Garage. The crux of this method relies on using a moving object to counterbalance the fall of the player character and create slow underwater-like gravity. Once that is set in place we move on to implementing an upwards swim stroke, downward dive, jumping out of a body of water, and a forward water-dash.
What I like is that all of the physical forces are being applied to the moving object box so you could attach this to any kind of player character (or enemy or NPC) that has basic directional movement already in place.
There are several things you adjust by means of a few constants. The move speed underwater, the force of each swim move, water-emergence jump force, and the distance and timing of the water dash are all adjustable.
Chapters
00:00 Intro
00:10 What we’re going for
00:18 Slow falling / Underwater gravity
01:07 Determining When Underwater
02:05 Slow Down Underwater Movement
02:41 Entering Water Effects
03:15 Upwards Swim Stroke\
03:57 Downward Dive
04:32 Emerging from Water Boost
05:08 Forward Water Dash
06:46 FiNaLLy
06:50 Download Code
06:56 Outro
Questions, suggestions, requests? Let me know in the comments.
Thanks for watching,
have a lovely day!
#GameBuilderGarage #NintendoSwitch #WaterPhysics #Swimming
─────────────────
Game: Game Builder Garage
Genre: Programming Game
Platforms: Nintendo Switch
Developer: Nintendo
Publisher: Nintendo
Release Year: 2021
─────────────────

Пікірлер: 57
@VideoDojoPro
@VideoDojoPro 2 жыл бұрын
Another excellent GBG deep dive from DaveNodon! This one is bound to make a splash! 🌊
@chicoza9463
@chicoza9463 2 жыл бұрын
Hi videodojo love your vids
@projectnex757
@projectnex757 2 жыл бұрын
@@chicoza9463 you mean don
@mightymadness5355
@mightymadness5355 Жыл бұрын
THIS DOESNT WORK ENTIRELY! ALL IT DID WAS GIVE ME LOW GRAVITY! I HAVE GOOD BRAINS BUT HARD HEARING
@raechelhinojosa4765
@raechelhinojosa4765 Жыл бұрын
Uhh wrong person
@buckaroo64
@buckaroo64 2 жыл бұрын
Dude, you are so underrated. Your content is so good! (Also I wish that instead of Bob and Alice making their squeaky sounds, it was you talking to the player in the tutorials! Your voice is perfect for it!)
@xysterboi2183
@xysterboi2183 Жыл бұрын
I agree, but I like Bob and Alice's squeaky sounds
@turtlemaster4017
@turtlemaster4017 2 жыл бұрын
You should add water physics to your “legend of Alice” game
@adriananderson9783
@adriananderson9783 2 жыл бұрын
Finally. I've been trying to work on figuring this out, but was attempting it with gravity and time controls, but they didn't work out at all. It was either on or off and when gravity was adjusted to a semi-state, I couldn't get a jump anymore. Thank you so much for this video.
@artsman9114
@artsman9114 2 жыл бұрын
Very nice, I had no idea where to even start with this. Have you ever thought of doing a video where you look at some of the creations of your viewers? You could give advice with their code or show what they did right.
@belvideer22
@belvideer22 Жыл бұрын
Also by connecting bgm noddons you can have the music slow down, be quieter, or different music.
@DaveNodon
@DaveNodon Жыл бұрын
Really smart! Help change the whole ambiance
@cheesestickfanatic
@cheesestickfanatic Жыл бұрын
Thanks for this great tutorial it was really helpful for my rpg platformer game
@x-man256
@x-man256 2 жыл бұрын
There should be a water nodon to save time.
@buddyber
@buddyber Жыл бұрын
To use less objects connected to the player, Connect the speed sensor to the moving box
@ungabunga2472
@ungabunga2472 2 жыл бұрын
What an awesome video! Thanks again for all the great content ❤️
@xysterboi2183
@xysterboi2183 Жыл бұрын
this one was extra confusing but very good!
@Indi6902
@Indi6902 2 жыл бұрын
Thought of an underwater level in my project;super person world, and I just thought of reducing gravity like in shovel knight or megaman-But this is a really neat way of doing it! I love your content btw
@DaveNodon
@DaveNodon 2 жыл бұрын
Thank you so much for this comment! Yeah I originally played with reducing gravity but I couldn’t really get to something that felt good.
@xysterboi2183
@xysterboi2183 Жыл бұрын
@@DaveNodon oooh
@brwnsara10
@brwnsara10 2 жыл бұрын
What if you made the twirl from 2D Mario games?
@artsman9114
@artsman9114 2 жыл бұрын
I believe you could use his double jump tutorial and change values for the jump itself(I’m assuming you mean like in the ‘new super Mario bros’ games). That could emulate something similar to that.
@cancercrab6487
@cancercrab6487 2 жыл бұрын
Great video! Very helpful!
@freezermakesmemes
@freezermakesmemes 2 жыл бұрын
Awesome thanks
@King_of_Idiots8
@King_of_Idiots8 2 жыл бұрын
Can we download this soon plz this looks awesome (oh I did not know that there was the code at the end of the video)
@brentus668
@brentus668 2 жыл бұрын
Suggestion: Seeing how we've got Underwater Physics I would absolutely love to see a video on how to make Ice Physics!
@ChaosCircut8055
@ChaosCircut8055 2 жыл бұрын
Is there a way you can use this for wall sliding?
@_maximus_prime_
@_maximus_prime_ 2 жыл бұрын
Is it possible to make a character that builds up speed over time? Like Sonic
@Sir_limon
@Sir_limon 2 жыл бұрын
Can make the person actually swim like he's turned around and do a spinning pose when he's still turned around and If the x button is pressed he dashes underwater while doing a celebration pose and have stamina like breath of the wild
@DaveNodon
@DaveNodon 2 жыл бұрын
You could have to floating and Stamina but one of the frustrations with the player character controllers is that they can't really be physically rotated on an axis!
@watmename
@watmename 2 жыл бұрын
I try half his stuff but it doesn’t work wth
@kingstonrad5201
@kingstonrad5201 2 жыл бұрын
Is anything to make slashing
@mysterioustacotruck1348
@mysterioustacotruck1348 2 жыл бұрын
I don’t know how-but I wish this didn’t take so many nodons, I could use it in platformer tho
@starbrickproductions2438
@starbrickproductions2438 2 жыл бұрын
Hey dave I've got an idea - what if you made a lightsaber and the force from Star wars - it would be amazing!
@starbrickproductions2438
@starbrickproductions2438 2 жыл бұрын
Or a mech😳 that would be even cooler (just a suggestion)
@JaredtheNacliFan
@JaredtheNacliFan 2 жыл бұрын
Can you make a tutorial on how to make a bouncy trampoline
@DaveNodon
@DaveNodon 2 жыл бұрын
Hi there, I think Oribloop just uploaded a tutorial on just this! I would check that out. kzfaq.info/get/bejne/gN5ifpd32t7HZqs.html
@donovan1
@donovan1 2 жыл бұрын
Could you possibly show us a way to make wind in the game that actually pushes the player
@DaveNodon
@DaveNodon 2 жыл бұрын
I’ll see if I can think of a better way but honestly my first thought is to create the effect of wind by using something like in this video. Applying a force to the moving object on your character The hardest part would just be telling the moving objects which direction the wind is blowing and when, and then fine tuning it.
@someoneunknown6553
@someoneunknown6553 2 жыл бұрын
Of course I ship Diver and Mermaid
@i-am-the-real-funni.-DAMEMEGUY
@i-am-the-real-funni.-DAMEMEGUY Жыл бұрын
that finally got me laughin 🤣🤣🤣🤣🤣🤣
@aliyahwilliams3179
@aliyahwilliams3179 2 жыл бұрын
I have a favor can you make a tutorial about item boxes? Like from Mario kart. To the items themselves and how to trigger them. Please I'm currently making a mari- wait a minute. That's supposed to be a secret!
@user-ns4vn5cw1r
@user-ns4vn5cw1r 2 ай бұрын
I think i may know how to add o2
@whospwow
@whospwow 2 жыл бұрын
Can you make a tutorial how to make the player drown?
@DaveNodon
@DaveNodon 2 жыл бұрын
Hi there, you could just count down a timer, when underwater, that resets when you get out. Maybe play a sound each second and pitch them higher each count. Or if you wanted a visual representation - I have a video on a regenerating stamina bar, you could just have it cont down when underwater and perish when it hits 0
@BluShiGuy
@BluShiGuy 2 жыл бұрын
Sonic: FU-
@RandomPerson12434
@RandomPerson12434 2 жыл бұрын
I have a request! Is it possible for a 3d game to have a 2d segment [or vice versa] without the use of a game swap nodon? If possible, you could add one of these to your "legend of Alice" project! You know, like a 2d cave area? Then again, this is just a suggestion, and this is your channel.
@user-mx8yn2vi3q
@user-mx8yn2vi3q 2 жыл бұрын
This is a bit late but I might try to do this
@osc-omb47896
@osc-omb47896 2 жыл бұрын
I presume you can just have a touch sensor that only makes you get input from 3d directions in the 3d bit using AND nodons
@stickguyanimatior818
@stickguyanimatior818 2 жыл бұрын
Who else came here to remake water palace
@SMB_Fan2010
@SMB_Fan2010 2 жыл бұрын
why u no let us dash infinitely underwater >:(
@anelochoa290
@anelochoa290 2 жыл бұрын
my son wants to learn how to do splitscreen
@DaveNodon
@DaveNodon 2 жыл бұрын
Hi Anel, There really is no way based on the camera tools currently in the game to do a splitscreen style setup. The next best thing for multiplayer games I’ve found is to use a camera that follows a point between the two players and zooms out as needed, or to have the computer switch back and forth between players that take turns.
@glynnreeves1405
@glynnreeves1405 2 жыл бұрын
I can make iron man in GBG
@LyaMauraAbueva
@LyaMauraAbueva 3 ай бұрын
Why so fast
@MabLikesBeans
@MabLikesBeans 2 жыл бұрын
Cool, but doesn’t work.
@Secrettunnelvr
@Secrettunnelvr 2 жыл бұрын
Way too fast
I Failed The IDIOT TEST In Game Builder Garage...
26:51
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
УГАДАЙ ГДЕ ПРАВИЛЬНЫЙ ЦВЕТ?😱
00:14
МЯТНАЯ ФАНТА
Рет қаралды 4,2 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 26 МЛН
I RECREATED Ninji Speedruns from SMM2 in Game Builder Garage
9:04
I Made FRIDAY NIGHT FUNKIN' In GAME BUILDER GARAGE...
8:12
Manx Ninja Pig
Рет қаралды 1,9 МЛН
How to Use Touch Controls in Game Builder Garage
8:20
DaveNodon
Рет қаралды 7 М.
I Made The Hardest Puzzle Game Ever
13:48
IrrationalMango
Рет қаралды 274 М.
A Game Builder Garage Showcase (40+ Games) - DPadGamer
15:35
DPadGamer
Рет қаралды 409 М.
I Tried the First Ever Version of Scratch
9:27
PolyMars++
Рет қаралды 798 М.
ОкКорз ЭП 1 - 14 | Анимация Minecraft
8:58
OK Корз
Рет қаралды 1,9 МЛН
Школьник ► SchoolBoy Runaway ► Побег в Закулисье
14:17