Тёмный

GameMaker Studio 2.3 - SCRIPTS HAVE CHANGED! 

Sara Spalding
Подписаться 160 тыс.
Просмотров 41 тыс.
50% 1

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@DanielLiljeberg
@DanielLiljeberg 4 года назад
Finally a step to make GMLmore like a usable language. This is moving in a direction that I thought it should the first time I saw GameMaker and GML. I'm hoping to see function arguments (ok that came later in the video) soon too and perhaps strongly typed variables and function overloading.
@didjargo
@didjargo 3 года назад
Thanks for this easy to understand explanation. It makes sense now why they made this change. Like, if you have an RPG with 20 unique items- you used to have to write 20 individual scripts. Now you can have one script that holds 20 functions. Plus, I like how quick and easy it is to declare arguments now, especially for writing long complicated functions where you used to have to keep track of what argument represented what.
@Arkonoid404
@Arkonoid404 4 года назад
I just wanted to let you know I'm thankful you went through the trouble of future proofing the ARPG series.
@seeker1602
@seeker1602 3 года назад
I'm on tutorial 7 of your Platformer series... This video saved my butt! Thanks for what you do, Shaun!
@froge721
@froge721 3 года назад
what code did you do to make it work? i still cant get mine to work lmao
@seeker1602
@seeker1602 3 года назад
@@froge721 I still don't have a clue on what the difference between scripts and functions is... But - so far - it hasn't mattered. I just type the scripts Shaun teaches between the two function brackets... Make sure you name the script when you create it... Then DON'T CHANGE THE NAME inside the function header. This has worked for me through the entire Platformer tutorial and is still going strong on Video 10 of the RPG. Hang in there.
@froge721
@froge721 3 года назад
@@seeker1602 you are a life saver thank you so much
@nozomemu
@nozomemu 4 года назад
Ayyy early gang Ngl, this totally threw me off since one of my projects had like hundreds of scripts and was worried it's as good as dead
@DarrelOdin
@DarrelOdin 4 года назад
Great overview of the changes! I hadn't realized I could also throw functions into objects, so thanks for catching that.
@kaleidodeer
@kaleidodeer 4 года назад
..So basically they function how they should have been from the start lmfao
@BenPovey
@BenPovey 4 года назад
Thanks so much for this timely update. I was going through your ARPG tutorial, and the script wasnt working. it may be worth updating the description on those videos with this update referencing this vid. GG
@bloodmancer4824
@bloodmancer4824 4 года назад
Thank god for this video. I've been following your old tutorials for a few weeks now and absolutely could not get my scripts to function.
@HarpellRoye
@HarpellRoye 4 года назад
glad this wont break my current project. thanks for breaking it down.
@locki_dos
@locki_dos 4 года назад
I was screaming at the top of my lungs trying to figure how the feck you do scripts now. I did eventually get it but it's so much more complicated than it was previously.
@savemegrilledcheesus494
@savemegrilledcheesus494 4 года назад
does 2.3 allow ignoring inherited functions? For instance, the parent has a script with a bunch of functions including function foo. When the child inherits the functions, can i write a local foo that does something different?
@RedlikVS
@RedlikVS 4 года назад
omg i´ve been waiting for this so long
@DrakesdenChannel
@DrakesdenChannel 4 года назад
I am hoping GM eventually incorporates true delta to game time so it doesn't need to be engineered by the developer akin to how it is in contemporary engines and dips in FPS don't cause slowing of in-game time. I think they are besides the architecture not doing this because GM's focus on 2D leaves the case of FPS dips an incredible rarity for any competent dev.
@Atebitbacon
@Atebitbacon 3 года назад
this was an extremely frustrating update I have no idea how or why I see so many comments saying this is easier now. my scripts only work when I write the arguments above the function in the old way and then write the code I want inside the brackets of the function. whenever I put my arguments in the parenthesis, the script does not run correctly (or not as I would expect it to run) but it will actually show my arguments in the bottom tool tip. this was made even more confusing when I would write my arguments the old way and see them work correctly when I run the game, but in my code I would get a warning saying I have 0 arguments even though when I run the game it works as expected so I have just learned to ignore those warnings. and the gap between figuring out that my code was actually running correctly with the old arguments was not fun to figure out. maybe Im still doing something wrong but idk because now my code is working the way I want.
@EmmetsPage
@EmmetsPage 4 года назад
My game wont launch, it just says "[Run] Run game Options: Z:/Bellend_F2F4E2D7\MainOptions.json X://windows/Runner.exe -game "Y:/Bellend_4AFCAC2_VM\Bellend.win" Attempting to set gamepadcount to 12 DirectX11: Using hardware device Collision Event time(microsecs)=2 " and doesn't launch. Please help.
@edp5623
@edp5623 4 года назад
Thanks so much for all the videos. I appreciate it.
@gamestraback4705
@gamestraback4705 4 года назад
is this everything that has changed from the coding gm 2 ? Im really happy that you explained it to us. Im following your action rig tutorial for a longer time now (always waiting for the new episodes :3) and after the change from 2.2 to 2.3, my game closes itself after a few seconds or if i go to the right, i don't know why, but i think i have a problem with my camera. Sadly i don't know what i have to change to make it better :c im still a very beginner :3 also, your tutorials are so amazing, its literally one of the tutorials or more like THE tutorial which i have ever seen and still work on, l don't know why, but l really appreciate how you always explain everything, its like im actually learning something :3 thank you for those
@taylorddesigns7204
@taylorddesigns7204 4 месяца назад
I am following along with your video, but ran into a problem GML does recognize this line "localFrame -= totalFrames;" how would I go about fixing this?
@ykyjohn
@ykyjohn 6 месяцев назад
nasicallu function created in scripts are global function. But what about variables, var variable is local no matter where ok. but variable declared without var is global internally inside an obj that created, but what about scripts and this relation?
@AqareCover
@AqareCover 4 года назад
Thank you for the tutorial! What would be a reason to declare functions inside objects? Is the performance boost really that high if only one of the objects can use it?
@Limekys
@Limekys 4 года назад
You forgot to say that now scripts are initialized immediately and do not need to be called in code. For example, you can register all the necessary global variables in one script, not in a function, but in a script, and they will work.
@DrPol1
@DrPol1 4 года назад
Thanks you've answered the question I had after watching this!
@-DeScruff
@-DeScruff 4 года назад
Ooo thats super handy! No more forgetting to call the script or errors caused by changing the order of rooms.
@jizosgoescrazy
@jizosgoescrazy 4 года назад
can't wait for pokey poke to come out... today ive tried the demo and its cool but u should add like some bomb where you can land or some different background
@chikoritalover
@chikoritalover 4 года назад
I don't think it's coming out today
@jizosgoescrazy
@jizosgoescrazy 4 года назад
@@chikoritalover no I mean that today Ive tried that thing lol
@chikoritalover
@chikoritalover 4 года назад
@@jizosgoescrazy Ah, my bad
@GeorgeMKaneLive
@GeorgeMKaneLive 3 года назад
I'm going to try this with one of your tutorials. It feels like the script name is now almost a folder for a collection of similar functions, and in the scripts you set up/program the functions. Then you call them in an object with that script_execute(); bit. Hoping I got that right. I like the var func variation too.
@kampetos
@kampetos 4 года назад
Fun fact everytime we place object on room and start the game, it's only show background, am try this on demo and tutorial it has same think.. and am try previous build it doin fine everything seems normal, is that bug on newest version?
@MrSaintRai
@MrSaintRai 4 года назад
can you make a video with new tips and tricks for many of the new features for GM2.3? Like best scenarios to use the new data structures like actual multi dimensional arrays, structs, the try and catch? is it better to work gml now like a roided javascript?
@RyderGaming
@RyderGaming 4 года назад
my biggest gripe with 2.3 scripts is that I no longer can search for a function with CTRL + T but only the containing script file.
@ActivelyVacant
@ActivelyVacant 4 года назад
Just make sure you NEVER rename your script after you start working with it. It will erase the entire script to put in a new blank function with the new name.
@sexyolga479
@sexyolga479 4 года назад
it won't. it will just change the name of the script. the name of the function and its content are preserved.
@ActivelyVacant
@ActivelyVacant 4 года назад
@@sexyolga479 You might want to actually test this.
@SaraSpalding
@SaraSpalding 4 года назад
@@ActivelyVacant He's right. If you changed the name of a script and it erased its contents that's a pretty severe bug you might want to report if you can reproduce it.
@liamgonzalez8207
@liamgonzalez8207 2 года назад
i dont know where i got it wrong but when i open the game it transitioned without me pressing R, the transition again and crash.
@perthrow2193
@perthrow2193 4 года назад
Will you remake the series's?
@nsixties4380
@nsixties4380 2 года назад
Hey, I'm not sure how var works in scripts
@doublepickaxeyt3400
@doublepickaxeyt3400 4 года назад
Mannnnn game maker looks more similar to unity now.....
@theoshore6953
@theoshore6953 2 года назад
i did this and before my little character would move around but doing this they won't move anymore
@ukyoize
@ukyoize 4 года назад
Glad that GM became a bit less shitter.
@Dogman_35
@Dogman_35 4 года назад
Never caught a video this early before
@abalaster9085
@abalaster9085 3 года назад
Coming from the second episode, I've been having this issue where my game crashes after a few seconds of running correctly (movement, animation) with just this - "FAILED: Run Program Complete For the details of why this build failed, please review the whole log above and also see your Compile Errors window." There's no compile errors however. I'm unsure if this is an issue with the update, as changing the runtime doesn't seem to help. I do literally have the same PlayerAnimateSprite script as instructed in the video, just wrapped into the function{}. Consider that it works fine before crashing (which can be within a second, 10, or when going into fullscreen/moving the window) I'm unsure of where I'd go hunting the issue. Thanks in advance for any advice!
@jocaznatabla5668
@jocaznatabla5668 Год назад
can anyone tell me how the PlayerAnimateSprite(); works now?
@alvesgnj4968
@alvesgnj4968 4 года назад
I wish we could use C# instead of GML. Hope they don't screwed your work with this update.
@Kelso_Belso
@Kelso_Belso Год назад
could you just explain the new version like we know nothing bc this tutorial has completely lost me and ive watched your old ones
@ZoidbergForPresident
@ZoidbergForPresident 4 года назад
So they become kind of like static classes then?
@marcindomanski5654
@marcindomanski5654 4 года назад
What app do you use for zoom and drawing on screen?
@epicfarts6622
@epicfarts6622 4 года назад
I was so worried that it was going to be a lot more complicated
@epicfarts6622
@epicfarts6622 4 года назад
And now state machines will be easier to organize and take up less room
@7wolfgaming710
@7wolfgaming710 Год назад
Great vid
@BigBadSpaghettiPatrol
@BigBadSpaghettiPatrol 3 года назад
so basically they're just like classes in java?
@Zmanwarrior
@Zmanwarrior 4 года назад
So to be clear, I can still watch your pre-update tutorials and everything will still basically work?
@SaraSpalding
@SaraSpalding 4 года назад
Yeah
@Zmanwarrior
@Zmanwarrior 4 года назад
@@SaraSpalding Awesomesauce.
@Jeweln20
@Jeweln20 4 года назад
@@SaraSpalding Sadly not :( In your Action RPG tutorial I'm at the second video and the animation does not work now. I'm now trying to figure out how to fix it and found this video. Hopefully I will be a little wiser in the end edit: forget it. Found the error. I'm stupid
@bernibrandner9064
@bernibrandner9064 3 года назад
@@Jeweln20 Can you tell me what your problem was? I think I have the same problem, but can't find my error.
@Jeweln20
@Jeweln20 3 года назад
@@bernibrandner9064 my error was my own fault. I had a typo in a variable name. If you write every script inside the prewritten function xxx{...} it should work fine
@Seruko_
@Seruko_ 4 года назад
Thanks for all the hard work ! I'm writing this comment to seek some help, since moving on to 2.3, my game crashes every time I loop my facing right running animation. I'm guessing that localFrame -= _totalFrames; ends up being equal to 0 and crashes the game, however, I can't seem to find a way to solve this without ruining the rest of the code (Although I checked, my PlayerAnimateSprite script is identical to Shaun's one). I have been tinkering with it for days, but no luck. It's frustrating because I want to continue following the tutorial, but it will be hard when I can't even go right properly. Can someone would be kind enough to help me ? Thanks !!
@jamesvaughn7477
@jamesvaughn7477 4 года назад
Wow. Haven't used GameMaker in a while. Looking more like Unity3D and Unreal Engine.
@barryherbers6090
@barryherbers6090 4 года назад
Thanks!
@maaxross9894
@maaxross9894 3 года назад
absolute beginner here, starting from Ep1 of the platformer tutorial and running into issues. I know I've got the discord and the subreddit to go to, and I probably will, but it's damn discouraging. :(======= It's not your job to supply the "total newb" with a list of potential landmines in laments terms, and I wouldn't hold you to it. It'd be nice if GMS did; and if they did, and I missed it, I'd love to read it.
@quelfefos8421
@quelfefos8421 Год назад
Would you leave the macros script?
@SaraSpalding
@SaraSpalding Год назад
I still tend to have a script for macros and stuff yeah, you can even expand this type of thing now and use it to declare globals etc since the script will be called at the start of the game.
@thyduck7542
@thyduck7542 3 года назад
I don't understand why the writer of the tutorial makes variables with a preceding _, it's so annoying to read.
@321Tdog
@321Tdog 3 года назад
It symbolises private variables when private variables aren't a thing in a certain language e.g. Python
@arniehgk
@arniehgk 3 года назад
function PlayerStateRoll(){ //Movement hSpeed = lengthdir_x(speedRoll, direction); vSpeed = lengthdir_y(speedRoll, direction); moveDistanceRemaining = max(0, moveDistanceRemaining - speedRoll); var _collided = PlayerCollision(); // Update Sprite sprite_index = spriteRoll; var _totalFrames = sprite_get_number(sprite_index)/4; image_index = (CARDINAL_DIR * _totalFrames) + min((((1 - (moveDistanceRemaining / distanceRoll)) * _totalFrames)), _totalFrames -1); // Change State if (moveDistanceRemaining
@johnblur5395
@johnblur5395 4 года назад
if that is game maker studio 2 desk top Where it had pass words. I refunded the game. It was my fault for writing pass word on paper where it can get lost but now i have a code book for all passwords and dates i put them on sorry to say i have no money to rebuy game but i will when i do. mean while went back game studio 1.4 i did finish 1st level asteroids using images but worked great.
@ArtyBeans
@ArtyBeans 3 года назад
H i
@Ragnark1
@Ragnark1 4 года назад
Every time I think about the fact that I have to go back and revise a bunch of code, I get really depressed.
@savemegrilledcheesus494
@savemegrilledcheesus494 4 года назад
And thats how we wind up with apps filled with poorly optimised and spaghetti code. Try to look at revision as a chance for you to see how much youve learned since past you wrote the code. Its also a chance to go back and make sure its commented properly. Future you will thank you for this.
@igorthelight
@igorthelight 3 года назад
@@savemegrilledcheesus494 100% agree.
@jjfisher4349
@jjfisher4349 3 года назад
I'm doing your Action RPG series and since updating to 2.3 I get this error: imgur.com/a/0WYSJTo Really stuck on how to fix it
@jvos
@jvos 3 года назад
Seems like the type of number used as an argument is not good, perhaps a letter or something out of range.
@inadvocate2816
@inadvocate2816 4 года назад
I'm so early 😯
@tonio3023
@tonio3023 4 года назад
Good to know Edit: first
Далее
GameMaker Studio 2: Health Bar Tutorial
13:49
Просмотров 83 тыс.
Why EVERY Gamemaker dev should use Structs
18:33
Просмотров 6 тыс.
ЗАБЛУДИЛИСЬ В ТРАВЕ #shorts
00:25
Просмотров 370 тыс.
How to Make a Good 2D Camera
11:38
Просмотров 404 тыс.
5 Useful Scripts for GameMaker Studio 2 (and 1!)
9:34
Beginner GameDev Mistakes - Ep 1
6:40
Просмотров 164 тыс.
Roguelikes, Persistency, and Progression
11:37
Просмотров 1,1 млн
Optimisation Tips | GameMaker Studio 2
19:10
Просмотров 50 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 712 тыс.
Node.js is a serious thing now… (2023)
8:18
Просмотров 646 тыс.
Organising Data | Menus: GMS2 [P1]
28:19
Просмотров 67 тыс.