Advanced Paths Functions in GameMaker Studio

  Рет қаралды 15,972

Let's Learn This Together

Let's Learn This Together

Күн бұрын

Пікірлер: 40
@AiguretDuren
@AiguretDuren 4 жыл бұрын
As I've been getting further and further into GMS2, I find myself learning with you. Thank you for the videos! (Also, hello from 2020 💀)
@glitchydust4015
@glitchydust4015 2 жыл бұрын
mp_potential_step function reminds me of Starcraft 1 AI. I love it hahaha!
@Tomekeeper
@Tomekeeper 5 жыл бұрын
That was very well explained and demonstrated cleanly. I appreciate it! This helps a lot.
@robinorbitamusic7456
@robinorbitamusic7456 2 жыл бұрын
Thank you so much. I can see that you're creating memory leaks here in "myPath" variable. But I really love this video. You helped me a lot. Thank you.
@stardreamix786
@stardreamix786 2 жыл бұрын
Thank u so much! :)
@InvertedSeal
@InvertedSeal 6 жыл бұрын
How the eff do you not have more subscribers? These videos are great!
@LetsLearnThisTogether
@LetsLearnThisTogether 6 жыл бұрын
Ah shucks, thanks.
@dman4435
@dman4435 3 жыл бұрын
This helps me a lot..... thanks
@billiephan
@billiephan 4 жыл бұрын
This is amazing, please keep these juice up
@arunnethrasigamani
@arunnethrasigamani 4 жыл бұрын
Thanks this is still helpful in 2020
@facundogaray1020
@facundogaray1020 3 жыл бұрын
amazing tutorial
@larryteslaspacexboringlawr739
@larryteslaspacexboringlawr739 7 жыл бұрын
thank you for gamemaker video
@trevalgisalgi5290
@trevalgisalgi5290 4 жыл бұрын
this is great
@3UpGolf
@3UpGolf 7 жыл бұрын
Great video(s) - been really enjoying them as I learn GMS. Am I correct in assuming the next video you'll be using tilemaps with the mp_grid calls?
@LetsLearnThisTogether
@LetsLearnThisTogether 7 жыл бұрын
+Rob Zimmerman That's the plan. Perhaps not the exact next video I put out, but it will be coming soon.
@nope1083
@nope1083 5 жыл бұрын
I had my volume up high, your intro made me jump.
@LetsLearnThisTogether
@LetsLearnThisTogether 5 жыл бұрын
Lol.
@personismaybe0610
@personismaybe0610 3 ай бұрын
Hello there. Could it potentially be possible that when the object tries to move towards a corner of the wall object that it gets stuck in the corner? I've been testing out 'mp_potential_path' and 'mp_potential_path_object', and every time without fail the object gets stuck inside the wall object. I even tried to alter the wall's collision from Automatic, Manual, and Full Image. None of them work.
@adityabhadkamkar8041
@adityabhadkamkar8041 7 жыл бұрын
can you make a video for platformer enemy IA, like detecting and following player, with maybe paths too, love your videos . thanks !!!!
@gelatinousgames3810
@gelatinousgames3810 5 жыл бұрын
hey so ive got this set so that when the player obj get withing a range of the enemy the enemy will begin to chase it, and if the player leave the range the enemy stops. my issue is that the enemy doesnt stop, but instead tries to get to the last made path end so to speak and ends up going in small circle or bouncing randomly around the area where the player was. any way to fix this? perhaps a way to destroy the created path?
@gelatinousgames3810
@gelatinousgames3810 5 жыл бұрын
never mind, im using a states system. and ive made it so after the player is outside of chase range of the enemy, the enemy changes to a "search for player" state where i end its current path and input new movement. so it no long tries to follow the last made path.
@aaronh560
@aaronh560 5 жыл бұрын
Is it possible to attach a path to follow the mouse_x and mouse_y or an object then have an travel around that path?. My experiments have fail and I'm struggling to come across anything similar. Previous I just made my own path in an array by using a path would give me more built in functionality
@LetsLearnThisTogether
@LetsLearnThisTogether 5 жыл бұрын
You sure can. You can dynamically add path points, which is what you'll want to do. Just assign them to the mouse coordinates, probably like once a second.
@aaronh560
@aaronh560 5 жыл бұрын
@@LetsLearnThisTogether Gottcha!. So add the points of the path manually likely during the creation event rather than using a pre-made path. I actually found a cheeky work around where I attached one object to to the path then had another object follow that object and offset the 2nd objects location by the mouse movement and was still able to use the premade path I'd created as I found having the visual guide of the path useful. Thanks for your reply!
@Alex-rr1qc
@Alex-rr1qc 5 жыл бұрын
that intro
@maltesvensen1635
@maltesvensen1635 6 жыл бұрын
i copied the exact code in the video so that the enemys would walk around walls but they just walk through the walls really slowly. do you think you could help me? code: if instance_exists(obj_player) { mp_potential_step(obj_player.x,obj_player.y,spd,false) } spd stands for the speed that the enemys walk.
@LetsLearnThisTogether
@LetsLearnThisTogether 6 жыл бұрын
Do you have things also set up so they’re solid and the enemies will go around?
@maltesvensen1635
@maltesvensen1635 6 жыл бұрын
oh it's fine i googled the problem a bit and got my answer, working flawless now!
@CleanCrown
@CleanCrown 6 жыл бұрын
how can i make my object rotate if its on a path
@LetsLearnThisTogether
@LetsLearnThisTogether 6 жыл бұрын
You need to build in a way to recognize which direction it's facing and then animate accordingly. So you can check things like xprevious and yprevious in the begin step. Then animate/rotate accordingly.
@CleanCrown
@CleanCrown 6 жыл бұрын
Beyond Us Games how do i do that
@fourthkim3715
@fourthkim3715 7 жыл бұрын
It's possible to use this tutorial on Game Maker 1.4 ?
@LetsLearnThisTogether
@LetsLearnThisTogether 7 жыл бұрын
Indeed. I mention where it's different in GMS 1.4 and show how to compensate for it.
@Taencred
@Taencred 7 жыл бұрын
I just can't get my object to stop animating when it has reached the end of the path. It's not responding to speed, but it's responding to direction. I feel so stupid at the moment..
@LetsLearnThisTogether
@LetsLearnThisTogether 7 жыл бұрын
In about an hour my community day is coming up, and you can hop on my Discord and we can screen share if you want help. Find me on Twitter for the link at 2.
@Taencred
@Taencred 7 жыл бұрын
Thanks a lot but won't be needed now, I just at this exact moment found the way to fix it. Been scratching my head at that one for an hour or so lol Thanks for the video anyway!
@dennism4781
@dennism4781 6 жыл бұрын
please export to gms 1.4
@sabriath
@sabriath 4 жыл бұрын
Ug, it's disheartening when I see tutorials with obvious memory leaks.
@LetsLearnThisTogether
@LetsLearnThisTogether 4 жыл бұрын
I can definitely make mistakes. Did I forget to destroy a DS object?
@sabriath
@sabriath 4 жыл бұрын
@@LetsLearnThisTogether ... when you create a new "goal" position, you destroy the last position, create the new position (which is fine), but then you create a new path and assign it without managing its memory. So every time you create a new goal, it creates a new path. Instead, you should be storing the path ID in the object itself and have it delete the path when destroyed to clean it up. It's not a huge deal, been scrolling through some old tutorials to try and get some programming inspiration in this quarantine crap.
Grid Based Navigation in GameMaker Studio - Tutorial
18:24
Let's Learn This Together
Рет қаралды 11 М.
GMS2 Cameras: As Simple as Possible
13:27
PixelatedPope
Рет қаралды 68 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
How I Won The GMTK Game Jam
25:09
JimmyGameDev
Рет қаралды 564 М.
Optimisation Tips | GameMaker Studio 2
19:10
FriendlyCosmonaut
Рет қаралды 52 М.
I am not sorry for switching to C
11:34
Sheafification of G
Рет қаралды 216 М.
How To Make Enemies Smarter: AI Weighted Decision-Making
11:37
Game Maker Studio Paths
18:17
Let's Learn This Together
Рет қаралды 4,7 М.
Grid Aligned Movement - GMWolf
8:33
GM Wolf
Рет қаралды 31 М.
After 44 Years, Someone Beat the Donkey Kong Kill Screen
29:09
1 year of progress on my game
13:33
Watt
Рет қаралды 134 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН