Hey, so this is a question I haven't been able to answer despite looking at multiple tutorials about Instance ID's. The way that I've got my game's weapon/equipment system working, is that in the Create event of any given instance (Player, Hostile Drones, etc.) there is an Instance_create_depth(xyz) function that adds their weapon to them. That works with (1) instance of an object, but when there are multiple, every weapon meant to spawn on the multiple drone instances, spawns on the first drone instance put down. My drone enemies all have turrets that need to rotate independently of the main body of the drone, so I need two pieces. I'm trying to figure out how to re-write the code in the drone object to spawn all the unique instances of drone_turret, on the proper instances of Drone_Littlehawk, then delete them when their carrier drone is destroyed. Any tips? I know I'm probably not doing a great job of describing it, and without the code itself to look at, you're at a disadvantage to diagnose the issue.
@GameEngineGeek4 күн бұрын
what do macros do differently then arrays?
@itaisinger13606 күн бұрын
Goat
@fannyslam15 күн бұрын
I've always wanted to make this style of game, thank you!
@brianjarema26416 күн бұрын
I dont know how youtube is just showing me this now after all this time. But I am glad i found it at the right momment. Thank you
@pink_bazookapod20 күн бұрын
can someone please tell me if GMS2 is free or not. Or even any pricing complications
@jaykay292325 күн бұрын
cluade sonnet 3.5 has come out since this video and chat gpt has gotten updated and is now familiar with the updated version of gamemaker studio. It has been a great resource for me to learn code from scratch and Is a great tool for dealing with specific code problems without having to post to a forum or search for an hour. I had no idea that bing used chat gpt! since you are limited by the amount of messages per 5 hours I will try bing to see if it lets me use that once I hit the message limit. Keep up the good work!
@HeathcliffeMcHarris27 күн бұрын
dang I just wanna draw that read-out box in the top left XD
@HeathcliffeMcHarrisАй бұрын
"/*" is a win here for me, thanks
@jordanedwards3114Ай бұрын
Seems more complicated than enums in a switch statement
@MrMaxwell218Ай бұрын
I cannot thank you enough, I always wanted to reproduce unity's event subscription in gamemaker. Used your project's base as a way to make my own event manager system, done entirely with structs. My game controller creates a new event manager, which is stored in a global variable. That global variable is then used in those script functions to call that event manager's functions/methods. Really nice system, and will definitely watch more of your videos in the future!
@VanDame-t7wАй бұрын
Thank you sir so much....
@siskavardАй бұрын
I can't code at all & barely understand Gamemaker. I was able to get ChatGPT to set up my player sprites and movements easily, but then I'm currently trying to set up a turn based system & after many failed attempts I just gave up. It keeps trying to do the same thing despite me asking it to try something different & I don't have the Gamemaker knowledge to actually check if the code it's spitting out is reliable or not.
@MortemKageАй бұрын
W man
@thndrking4Ай бұрын
because of the use of "break", is it not possible to use this in any loop like "for" or "while"? Trying to find a work around.
@thehuggz-i9kАй бұрын
minor annoyance: When you grab the slider it snaps to center on the mouse. Fixed by storing mouse_x - x when you grab (and clearing it when you release) and doing a little math when you clamp(mouse_x - grab_offset_x, x_start, x_max)
@AyeshaInt-z4j2 ай бұрын
🎉
@infectedgoat992 ай бұрын
Almost halfway through your "Coding Fundamentals in GML" playlist and I have to say, these tutorials are really good and I am glad you made them!
@BazzaThePainter2 ай бұрын
need full tutorial please...
@mathieuDBilly2 ай бұрын
4 years later, this little trick is still working Thank you so much
@CoyoteArcade-1822 ай бұрын
keep up good work , nobody make videos so to the point with no bs and give actual good info , your a beast
@imnugget80852 ай бұрын
You can tentically by sending a yyp file tentically and they can play it but saves files eont work sadly
@imnugget80852 ай бұрын
He makes a great point i have a issue with moving platform cause i have no real reference for it to work from my head such as Clamp ect its like building a home with material you never seen its impossible
@PixelKnight932 ай бұрын
what about the times you'll need to define a local variable not because it's not needed else-ware but because an instance variable (a variable defined in the create event) for some reason won't work in the create event because it holds information that needs to be checked every step but needs to be used on the instance level to? For example, I needed to check for the _nearest instance then add it to the active_target variable in the create event but I also needed to determine if that instance !is_dead before allowing it to be added to the active targets but for some reason that instance variable doesn't want to be available to the steps event in the object it needed in under _active_target.is_alive == true but it works just fine under _nearest.is_alive == true.
@81Fredrick3 ай бұрын
Great tutorial, simple but for my dumb little head it is very needed. Thank you :).
@Milktaffy3 ай бұрын
this deserves more likes
@imnugget80853 ай бұрын
Honestly just ask it to make me study guide also you have to ask it to make simple structure but if you dont know how to code you legit can get it to code cause there to many code languages even if i do GML it think or mess up built in variable even IF I TELL IT but with that said it clearly gotten dumber some how
@imnugget80853 ай бұрын
This is so helpful another basic thing people get lost is when and when not add ( ; )
@martinmaxking3 ай бұрын
Year later and I still have problems with chatgpt working with multiple switch statements ;)
@plon47423 ай бұрын
Hi Sam. Thank you so much for this video! I am familiar with GML and currently learning Javascript. But having little trouble understanding the JS concepts like arrow function, anonymous function, callback, etc. This video has been very helpful! Thank you!
@fredambrose3 ай бұрын
Recursion often happens @ work when you are asked to do something bad or risky @ work, sooooooo just let your co-worker do it.
@fredambrose3 ай бұрын
Hey; now I like playing Black Jack.
@ZayyzYT3 ай бұрын
You should remake this video with the the new capabilities of the free tier
@fredambrose3 ай бұрын
@ SamSpade can you do a video In referance to Green Eggs and Ham and saying the does and don't for video game development?
@brobotics38983 ай бұрын
Thank you for this series.
@georgehennen3 ай бұрын
Oh, someome who is pleasant that makes gm games. Dope
@Tofucakereal3 ай бұрын
This doesn't work for me
@dvsteve714 ай бұрын
is this still good in 2024?
@fredambrose4 ай бұрын
I am a Truck Driver (CDL) trying to build a game like everyone else here, however I would recommend learning the basics of C programming and then learning GML from these tutorials before working on GameMaker Studio 2, I know all of my co-workers are laughing behind my back and saying it can't be done but I will keep trying, by the way my work week is usually 55 to 60 hour work weeks and I'm still here.
@tanura58302 ай бұрын
what. Why are they laughing? Because they think one man can't make a game? It's already been done. There are many people who made games solo. But you have to be skilled at both drawing and coding.
@criaturamarcelo80864 ай бұрын
Sorry, how can i use the "_effect_blend"? I mean... how can i whrite their parameters?
@soubakouh4 ай бұрын
Aleluia!!!! if anyone reads this comment.. Yes! this is your definitive video!!
@easternunit20094 ай бұрын
and I’m guessing that tying all the states to enum values is even better right?
@Far.aep_4 ай бұрын
Me after seeing the exam 8:34
@ajinkyax4 ай бұрын
Wow i was looking for broadcast event, and found this instead. Works 😃
@ajinkyax4 ай бұрын
Can we trigger events from an Object, such other objects can listen to it .
@81Fredrick5 ай бұрын
very informative, thank you for your tutorials
@EskinderWorkneh5 ай бұрын
I'm raphael
@EskinderWorkneh5 ай бұрын
Gyatt
@itaisinger13605 ай бұрын
thanks for making such high quality gamemaker spesific coding tutorials. i for one dont need it but ive referenced your videos to quite a few people by now, you are a lifesaver. or atleast saves some people from the hurdle of learning coding in a different language, only to then need to switch back to gml.