Let's Make Smarter Companions in Game Builder Garage

Ойындар

It's Dangerous to Go Alone! Take this (Me)!
Who needs online co-op, I create my own friends :)
Today we're setting up a basic system for a following companion that can do some basic platforming with you and be told to stay put. This can be a great building block base at only 28 nodon to add whatever other logic you might want! Add commands, control him with the right stick, have a bunch of them chase you and stop doing so when you complete certain tasks/etc.
An alternative to the ball jump catch is to check whether the Y location of the player is greater than the Y of the follower, if so then, Jump!
GameID: G 001 X44 1PL
Programmer ID: P 004 2LT PL5
TimeStamps
00:00 Intro
00:24 The Goal
1:00 Basic Follow Logic
2:15 Personal Space Barrier
03:15 Toggle Follow Behavior
04:23 Let There Be Jumps
05:30 Discussion / Where to go from here
Questions, suggestions, requests? Let me know in the comments.
Thanks for watching,
have a lovely day!
#GameBuilderGarage #Companions #Davenodon
─────────────────
Game: Game Builder Garage
Genre: Programming Game
Platforms: Nintendo Switch
Developer: Nintendo
Publisher: Nintendo
Release Year: 2021
─────────────────

Пікірлер: 58

  • @TheMrObservador
    @TheMrObservador11 ай бұрын

    The sphere as detection is a super clever idea Dave. Maybe, u could make so once the AI person jump, it destroys the sphere, so it won't jump again if it goes to the same spot

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    Yeah the next step up in polish would probably be a fancy object that teleports in when you jump as long as conditions are met and disappears to a neutral place when it activates the follower’s jump logic.

  • @beastgamer2947
    @beastgamer294711 ай бұрын

    This tutorial is an excellent idea, but there was a problem I just had about it and knew how to fix it. My problem was that when I jump while the companion was standing still, the sphere for the companion to jump on appears. I solved this by making it so that if B is pressed and the companion is standing still, the sphere for the companion to jump on won't appear. And it worked.

  • @andrewsjourneys
    @andrewsjourneys11 ай бұрын

    Thank you so much Dave this helped me a lot. Keep up the awesome tutorials.

  • @OfficialMichaelAnimations
    @OfficialMichaelAnimations11 ай бұрын

    Can you give me some advice I am trying to make a horror game with closets you can hide in but I don’t know how to make it so that when you get in the closet the enemy stops following you

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    Instead of the toggle button to prevent the following like in this video you could have touch sensors detecting your character in the closet.

  • @OfficialMichaelAnimations

    @OfficialMichaelAnimations

    11 ай бұрын

    @@DaveNodon thanks!

  • @Captain_Boi132
    @Captain_Boi13211 ай бұрын

    This was really help full cuz i am making a game with actual story and i need a follower for it

  • @NotRobertJunki
    @NotRobertJunki11 ай бұрын

    cool video hopefully you can make more tutorials like this im not the best coder EVEN with gbg so yea this channel helps out ALOT so thanks!

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    Happy to be here and help. I have experience in all kinds of game dev and even though it’s not always the same there are some skills that crossover to all kinds of coding and game dev. If you ever have a suggestion or an idea I’m open to them!

  • @WillyWorm
    @WillyWorm10 ай бұрын

    Another Good tutorial from DaveNodon

  • @That1OtherYouTuber
    @That1OtherYouTuberАй бұрын

    Time to make Tails!

  • @thunderman_2226
    @thunderman_222611 ай бұрын

    Thanks!

  • @retro3188
    @retro318811 ай бұрын

    This is cool!

  • @monkeman1122
    @monkeman11228 ай бұрын

    finnally, I can make jumping enemies

  • @nevillepatton3230
    @nevillepatton323011 ай бұрын

    Hey Dave! I just started using GBG and I love your videos they’ve really helped me and I used your “Let snake a first person shooter” or something like that to start working on a tank and wanted to see if you could take a look at it

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    I’m really happy you’re enjoying the videos 😊 thanks. yes share the code and I’ll check it out.

  • @nevillepatton3230

    @nevillepatton3230

    11 ай бұрын

    G-007-H2M-77D Don’t mind the extra person it’s something I was working on

  • @FlyingShutinis

    @FlyingShutinis

    9 ай бұрын

    i used that video too and i made a zombie shooter game

  • @EXCALlGATOR
    @EXCALlGATOR10 ай бұрын

    Do you think you could make a working turret that auto aims at nearby enemies? I just think it would be a fun idea for a defense mechanism.

  • @RJthegreat.
    @RJthegreat.11 ай бұрын

    Ooh! I’ve been needing this for a while! Thanks! But also, can’t you just timer delay your jump for the companion? It should have the same outcome no?

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    True you could time it based on how far they follow. You’d run in to some issues where if they are following from a few paces behind because you just toggled, they’d do it too earlier or janky. But all the methods have drawbacks. You could also do something like check if the Player Y location is higher than the Follower Y position and if it is, then jump to try and match it.

  • @RJthegreat.

    @RJthegreat.

    11 ай бұрын

    @@DaveNodon Ah i see, i was going for like a sonic 2 buddy system how where the player jumps while idle, the buddy jumps about half a second later, ig i can just toggle through them while your idle

  • @ethanpete2356

    @ethanpete2356

    11 ай бұрын

    @@RJthegreat. SONIC 2

  • @IceMetalPunk
    @IceMetalPunk9 ай бұрын

    Perhaps a slightly better follower jump AI would be to combine two touch nodons below the follower, both checking for ground: one directly below, one a little in front. If the one below detects ground and the one in front and below (or attached to the front, but tall enough to dip below the follower's height) doesn't, then jump.

  • @jedinoah5370
    @jedinoah537010 ай бұрын

    Hey dave nodon! Do you think you could make a tutorial for making a menu ui? Im not talking about just the game swap and button select but making the camera teleport so i can switch through parts of the menu and display more info. If this is not possible thats okay because im sure there are other ways.

  • @natalieerib
    @natalieerib11 ай бұрын

    5:43 when the spaghettios are too hot

  • @maddoxfun
    @maddoxfun11 ай бұрын

    I made an nocturnal but that was boring so thanks for this Edit: I meant npc but it autocorrected

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    I was wondering what a nocturnal was 😆 like some kind of cool zombie that follows you or something

  • @CannedSoup.283
    @CannedSoup.2837 ай бұрын

    Question: would there be a way to make it so if the follower gets close to a wall, it'll turn away? I'm making a horror game, but seeing some dude walking in a wall isn't exactly scary.

  • @extroz_115
    @extroz_11511 ай бұрын

    Can you make a tutorial on how to make a slow motion button

  • @CherrySwag
    @CherrySwag7 ай бұрын

    is there a way to make the player that follows you get faster when it gets near you? this would help in stuff like horror games where the only way to get rid of the follower is hiding? thanks in advance :)

  • @DaveNodon

    @DaveNodon

    7 ай бұрын

    It would be similar to the personal space barrier. The output of that absolute value nodon will contain the distance from the player. You can use a less than (

  • @DaveNodon

    @DaveNodon

    7 ай бұрын

    I just scrubbed through the video and realized what goes into the player is scaled based on the distance. My bad. This actually makes it more tricky. You can add a moving object to the follower and apply a forward (z+ or z-) movement to boost their movement a bit! (Based on whether the player distance is less than what we set)

  • @PsydoToxic
    @PsydoToxic5 ай бұрын

    Is there a way to set it were if they get to far away they will teleport to you?

  • @DaveNodon

    @DaveNodon

    5 ай бұрын

    That’s actually a really cool idea. Yes. The same way we use the absolute value of the difference in positions to check how far they are in this video, you could make it so that if that distance value is “greater than” a certain number, then teleport. That would look like a greater than nodon with a constant set to the “max distance” number you’d like as the other input. Then the output from that would go into a teleport entrance attached the Follower , with a teleport exit of the corresponding letter channel attached to the Player.

  • @morganisapro6
    @morganisapro69 ай бұрын

    How do I make it so that the AI only moves when a touch sensor has detected the player? I tried using a flag nodon but the AI still moved when the flag was off

  • @DaveNodon

    @DaveNodon

    9 ай бұрын

    If the flag is handled correctly and placed with the right connections like in the video then there is something messing with the flag logic. Maybe the flag ON switch is activating by accident. Flag would be the way - or having the sensor output be multiplying the movement instead of a flag is a another way

  • @PsydoToxic
    @PsydoToxic18 күн бұрын

    Is there a way to make them follow you but, only for a certain period of time?

  • @DaveNodon

    @DaveNodon

    17 күн бұрын

    Yes, you could start a timer for a specific time whenever you turn the follow behavior ON. Then have the time output once it's complete turn OFF the follow Flag.

  • @the_cool_penguin
    @the_cool_penguin10 ай бұрын

    What if this as also used with the sonic guide

  • @OfficialMichaelAnimations
    @OfficialMichaelAnimations9 ай бұрын

    I’m really nervous because tomorrow school starts

  • @DaveNodon

    @DaveNodon

    9 ай бұрын

    I’m sure you’ll do great! Being nervous is normal, but no need to worry 😊

  • @OfficialMichaelAnimations

    @OfficialMichaelAnimations

    9 ай бұрын

    @@DaveNodonthank you I feel better now and it starts in a couple of hours and I’m really excited

  • @oraclegaming2001
    @oraclegaming20015 ай бұрын

    Hey! Listen! (Sorry, couldn't help it!) My family got GBG and TOTK for Christmas! When I say my family, I mean we all share the game, but the person who the gift was addressed to gets to play it first. I was so excited when I saw my younger brother open Tears of the Kingdom, and then my excitement increased when I saw Game Builder Garage! I was playing around with GBG for a bit, and following this tutorial TO THE TEE! But the Companion Person runs away for a bit, and then in order to get them to follow you, you have to chase them for a bit. Do you happen to know the problem? I haven't played TOTK yet, but when I do, I will most likely post a comment about it on one of your Tears of the Kingdom videos.

  • @DaveNodon

    @DaveNodon

    5 ай бұрын

    I don’t know, maybe it’s the following persons movement style settings, the need to be set to “world” or just one of the subtraction or math nodon and the X, and Z cables not being exactly right could do it also. Awesome games for Christmas! 🎄

  • @oraclegaming2001

    @oraclegaming2001

    5 ай бұрын

    @@DaveNodon Okay, thanks! I'll be sure to check that out! I hope you had a great Christmas!🎄

  • @Drachenbauer
    @Drachenbauer4 ай бұрын

    You created mans groups of constant-nodons and calculation-nodons here. You can use map-nodons instead, so you need a few nodons less.

  • @SirRebrl

    @SirRebrl

    18 күн бұрын

    Map nodons can replace arithmetic with one variable and one constant, but they can't replace arithmetic with two variables. All of the calculation nodons in this particular video can't be replaced with maps.

  • @Eyetakespoops
    @Eyetakespoops11 ай бұрын

    Have you ever tried to make a rpg and do u got a Playlist for beingers

  • @DaveNodon

    @DaveNodon

    11 ай бұрын

    A true RPG with like levels and exp would probably be a lot to manage between levels. I have started an action adventure style rpg like Zelda but the project got too big and I couldn’t keep up. I will work on a beginner playlist that’s a good idea but I haven’t made one yet. I guess as a rule of thumb some of the older videos or videos that have a simple topic would be better. Replicating features from other games will usually always be way more complicated

  • @NickoTHPS
    @NickoTHPS10 ай бұрын

    i have a idea. mabye you could make a tutorial of how to make a geometry dash like game, with the controls and gamemodes. as a geometry dash player, it would be SOOOOO cool!

  • @PlutoStarry
    @PlutoStarry11 ай бұрын

    Can you tell me the obby at the end please in to see something please

  • @PlutoStarry

    @PlutoStarry

    10 ай бұрын

    Can you help please

  • @i-am-the-real-funni.-DAMEMEGUY
    @i-am-the-real-funni.-DAMEMEGUY11 ай бұрын

    woahhhhhhhhhhhhhhhhhhhhh

  • @i-am-the-real-funni.-DAMEMEGUY

    @i-am-the-real-funni.-DAMEMEGUY

    10 ай бұрын

    question: i have seen how to make following ai, but how do you make one that runs away from you?

  • @FlyingShutinis

    @FlyingShutinis

    9 ай бұрын

    @@i-am-the-real-funni.-DAMEMEGUY use a attract nodon that has negative inputs or just do this whole video but all the inputs are negative ones not sure if these will work though

  • @omegaflowey9932
    @omegaflowey993210 ай бұрын

    3:17

Келесі