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 💀)
@glitchydust40152 жыл бұрын
mp_potential_step function reminds me of Starcraft 1 AI. I love it hahaha!
@Tomekeeper5 жыл бұрын
That was very well explained and demonstrated cleanly. I appreciate it! This helps a lot.
@robinorbitamusic74562 жыл бұрын
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.
@stardreamix7862 жыл бұрын
Thank u so much! :)
@InvertedSeal6 жыл бұрын
How the eff do you not have more subscribers? These videos are great!
@LetsLearnThisTogether6 жыл бұрын
Ah shucks, thanks.
@dman44353 жыл бұрын
This helps me a lot..... thanks
@billiephan4 жыл бұрын
This is amazing, please keep these juice up
@arunnethrasigamani4 жыл бұрын
Thanks this is still helpful in 2020
@facundogaray10203 жыл бұрын
amazing tutorial
@larryteslaspacexboringlawr7397 жыл бұрын
thank you for gamemaker video
@trevalgisalgi52904 жыл бұрын
this is great
@3UpGolf7 жыл бұрын
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?
@LetsLearnThisTogether7 жыл бұрын
+Rob Zimmerman That's the plan. Perhaps not the exact next video I put out, but it will be coming soon.
@nope10835 жыл бұрын
I had my volume up high, your intro made me jump.
@LetsLearnThisTogether5 жыл бұрын
Lol.
@personismaybe06103 ай бұрын
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.
@adityabhadkamkar80417 жыл бұрын
can you make a video for platformer enemy IA, like detecting and following player, with maybe paths too, love your videos . thanks !!!!
@gelatinousgames38105 жыл бұрын
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?
@gelatinousgames38105 жыл бұрын
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.
@aaronh5605 жыл бұрын
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
@LetsLearnThisTogether5 жыл бұрын
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.
@aaronh5605 жыл бұрын
@@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-rr1qc5 жыл бұрын
that intro
@maltesvensen16356 жыл бұрын
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.
@LetsLearnThisTogether6 жыл бұрын
Do you have things also set up so they’re solid and the enemies will go around?
@maltesvensen16356 жыл бұрын
oh it's fine i googled the problem a bit and got my answer, working flawless now!
@CleanCrown6 жыл бұрын
how can i make my object rotate if its on a path
@LetsLearnThisTogether6 жыл бұрын
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.
@CleanCrown6 жыл бұрын
Beyond Us Games how do i do that
@fourthkim37157 жыл бұрын
It's possible to use this tutorial on Game Maker 1.4 ?
@LetsLearnThisTogether7 жыл бұрын
Indeed. I mention where it's different in GMS 1.4 and show how to compensate for it.
@Taencred7 жыл бұрын
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..
@LetsLearnThisTogether7 жыл бұрын
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.
@Taencred7 жыл бұрын
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!
@dennism47816 жыл бұрын
please export to gms 1.4
@sabriath4 жыл бұрын
Ug, it's disheartening when I see tutorials with obvious memory leaks.
@LetsLearnThisTogether4 жыл бұрын
I can definitely make mistakes. Did I forget to destroy a DS object?
@sabriath4 жыл бұрын
@@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.