Тёмный

GameMaker Studio 2 - How To Import & Animate Sprites Beginner Tutorial 

Let's Learn This Together
Подписаться 11 тыс.
Просмотров 165 тыс.
50% 1

Check out the updated video: • GameMaker Studio 2.3 -...
Learn to import and animate sprites in GameMaker Studio 2. Perfect for beginners or those upgrading to GMS 2.
In this video I'll walk you through a blank project to having a fully animated character using a sprite sheet and GameMaker Language. We'll animate very smoothly, learn how to adjust animations based on movement speed, and set the game to 60 FPS over the default 30 for buttery smooth animations.
My Exclusive Courses💻🎮:
- Bundle Course Package & More Here! www.letslearnthistogether.com...
Social:
- Connect with me on Twitter @Aaron_LLTT: / aaron_lltt
- Become a valued Patron and receive more exclusive perks @: / letslearnthistogether
- Wanna hear from other developers in the industry? Head on over to my podcast, DevTalk, to listen to engaging conversations I have with various successful developers: devtalk.buzzsprout.com/
Finished Project With Comments ------ drive.google.com/open?id=0B8h...

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

 

5 апр 2017

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 466   
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Updated 2020 version of this⬆ video here 👉: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-po8TMV9y9SE.html
@tonytony7915
@tonytony7915 8 месяцев назад
Thank you so much!
@Khiast
@Khiast 5 лет назад
I was just getting a start on gamemaker studio for fun, but man... you cover lots of subjects regarding game coding and you just mention what are very essential. Your videos are very explanatory and easily understandable. Really nice work you're putting on this channel. I really like the videos and hope the best for you, Good luck ^^
@user-ki3ry5ek7o
@user-ki3ry5ek7o 10 месяцев назад
You just saved me. I know this video was posted six years ago, but I just spent over an hour trying to figure this out and your video finally helped. Thank you so much.
@3dmonkeybizz
@3dmonkeybizz 7 лет назад
It is people like you that, not only make learning fun, but also "Make Learning"!!!! Thanks also for the generousity of the sprites and full project. Like others, I learn best when I pull a project to pieces and put it back together after knowing what each piece does.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+3dmonkeybizz I am happy to hear you're learning and that what I'm putting out is being used.
@nizarlahmar1431
@nizarlahmar1431 7 лет назад
Thank you ! I was struggling to import animated sprites ! I had to use photoshop to edit them and stuff, now i know exactly how to do it simply ! UR THE BEST YO
@hocs89
@hocs89 7 лет назад
Dude you are Awesome!! For some reason i was having trouble in my code, so i change "walk_Speed" for "WalkSpeed" in the event, and works for me. Keep it up!
@kiararobinson8929
@kiararobinson8929 5 лет назад
This video saved my butt for a game designing class! Thank you so much!
@MichelleMoonknight
@MichelleMoonknight 5 лет назад
Finally a tutorial where after lauching game the movement worked
@Thorn_yore
@Thorn_yore 2 года назад
That was super helpful , Thank you so much for making this video! I was struggling so much with this , now this whole thing is just soo much easier
@blendtecrocks08
@blendtecrocks08 6 лет назад
thanks a lot man! I made sure to make notes of these certain actions that you can type within GML and exactly what they mean. The only problem is I couldn't find a symmetric sprite sheet for Samus but still made the best of it, thank you again!
@alexploscaru1065
@alexploscaru1065 6 месяцев назад
Amazing video, straight forward and useful. really helped me out through my Uni project.
@Aurnoi1
@Aurnoi1 7 лет назад
Thanks a lot for this tutorial. It help me very much for a game I write for my daughter. Adding the sprite sheet and the project is more than appreciate since it's easier to debug with a working template!
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
You're very welcome. It's awesome you're making a game for your daughter, as I'm actually working on the same kind of thing. Have great fun with it!
@skycat7803
@skycat7803 6 лет назад
This is EXACTLY what i needed, thx a lot, just subbed
@sollerclock
@sollerclock 7 лет назад
Hey dude, just found your channel and wanted to tell you that you are the best teacher on this damn website.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+aceraven Thanks for the compliment, I appreciate it!
@BlackstarXD-hc3xx
@BlackstarXD-hc3xx 6 лет назад
Hi I'm trying to make a game and I have a Sprite that has a green background how do I get rid of the green background and only have the Sprite
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
+black star23 When you import the sprite it should have a checkbox to clear the background. If not, inside the image editor you can color select a background away with one of the tools.
@ahmadfallah700
@ahmadfallah700 5 лет назад
Your an idiot. This is not a website.
@d.h.k.c8113
@d.h.k.c8113 5 лет назад
@@ahmadfallah700 ... RU-vid... is TOTALLY... a website.
@MariseAme
@MariseAme 7 лет назад
Really insightfull tutorial for me as a newcomer to GameMaker community
@henrylang699
@henrylang699 5 лет назад
thanks! this is just what i was looking for!
@theexiledjester8343
@theexiledjester8343 6 лет назад
Definitely got another subscriber today! Amazing videos good sir! Have a grand day!
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
+TheExiledJester and to you good sir!
@Etcher
@Etcher 5 лет назад
Brilliant! Clear and concise!
@therealseanw.stewart2071
@therealseanw.stewart2071 6 лет назад
Simple, and very helpful; Thanks a lot! ^^
@threeeyeduke981
@threeeyeduke981 6 лет назад
ive bin looking for this tutorial for so long THANK YOU!!!!!!!
@mnooper
@mnooper 6 лет назад
*I've *been
@threeeyeduke981
@threeeyeduke981 6 лет назад
no one cares Mnooper -_-
@paulschneider3997
@paulschneider3997 5 лет назад
THANK YOU this is the best Tutorial site subscribed
@Guerra_civil_games
@Guerra_civil_games 4 года назад
so much thanks dude. Cool video and good explanation
@nyuyehlucu5692
@nyuyehlucu5692 4 года назад
This is the best video i've watched. Thanks
@avard7779
@avard7779 4 года назад
*Thanks **dude.My** computer not working and i watched this tutorial on another computer.But next week i'm call the pc fixer for fix my computer*
@zyrusz37
@zyrusz37 6 лет назад
I just looked Shaun Spaldings complete Game programming, but he only works with image_index = 0, 1, 2 etc. And not with sprites, so you saved me :)
@lostguy478
@lostguy478 3 года назад
Thank you so much dude! This helped a lot!
@viciouswhale1115
@viciouswhale1115 5 лет назад
You helped me a lot with that. Thanks
@Sedgehun
@Sedgehun 2 года назад
Thank you very much for this amazing tutorial :)
@CyStories_
@CyStories_ Год назад
Amazing honestly , thank you✨💯
@professionalgamer5407
@professionalgamer5407 6 лет назад
Thanks, this really helped me.
@kisttoe
@kisttoe 6 лет назад
thanks really helped me out on this one !!!!!
@claudettebruce8622
@claudettebruce8622 4 года назад
this helped me so much thx :)
@yuriiekimov6914
@yuriiekimov6914 4 года назад
Teacher for Life bro. Thanks!
@drafi0775
@drafi0775 6 лет назад
i got it to work thanks (i just modified it just because i wanted "D" and "A" , i will need to think how to make a jump but i think i got this) thanks
@anthonyherra7342
@anthonyherra7342 3 года назад
One of the best videos!
@Panda-rb7nm
@Panda-rb7nm 2 года назад
O God this dude is really helpful love you
@enzomedina3118
@enzomedina3118 5 лет назад
Perfect, thank you !!
@vinicius_carvalho
@vinicius_carvalho 3 года назад
good job guy! thanks!
@vacationstars2231
@vacationstars2231 3 года назад
Thank you so so much!
@Monster_Face_RB
@Monster_Face_RB 11 месяцев назад
Great video!
@djwoo2407
@djwoo2407 6 лет назад
I *cant wait to start making more serious games*
@robertpenguin6597
@robertpenguin6597 6 лет назад
Where you were in my tutorials!? New suscriber to you!
@dotahighlife8469
@dotahighlife8469 2 года назад
How do I animate different directional movement in a "left click to move" scenario? I can't set "W,A,S,D" keys to each animation because im using a single left click to determine direction
@felixclotida3468
@felixclotida3468 6 лет назад
thanks alot remember you can use for the running If keyboard_check_pressed(vk_shift) i think
@moistcheetoman8195
@moistcheetoman8195 Год назад
I have a question. So, I did everything on the video except for running then I ran a test run but my sprite flew offscreen. Can you tell me what I am missing or what I did wrong?
@cousp3212
@cousp3212 3 года назад
genial, por fin un video bien explicado, thank you so much
@dash8849
@dash8849 3 года назад
On the create part it says variable walk speed only referenced once????? Help please
@simplylabs1887
@simplylabs1887 6 лет назад
Awesome, thanks :)
@threeretardedmusketeers6275
@threeretardedmusketeers6275 3 года назад
what do you do if spreadsheet animated sprites arent the same size (so you can just make all boxes the same size you have to make each a different size)
@n_coder
@n_coder 4 года назад
I'm with a problem , my sprite turns into a square when i run the game , in the program he's normal but when i run the game he turns into a square . What do i do ?
@selecanewba
@selecanewba 2 года назад
OH MY GOD BROH, thank you
@cool3500
@cool3500 5 лет назад
when i import the character i still can't get rid of that white background around the character animation, and when i import the character in game, it shows it with that white background....
@P1aenkl3r
@P1aenkl3r 5 лет назад
Great job! Thx
@NakiriayameEnjoyer69
@NakiriayameEnjoyer69 4 года назад
um I want to know how to make a smash bros type of moveset because this game for steam called rivals of aether is a platform fighter like smash so I would like to know how to do that specifically pls
@PhizzyTizzy
@PhizzyTizzy 6 лет назад
Hey, thanks for the video, it was really helpful, I'm just curious if there is a way to remove the standing still frame from the animation, because the way I drew my character, her standing still frame makes the animation of her walking a bit awkward.
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
For sure. You can remove an frame from the animation but deleting it inside the sprite editor window. Select the one you want and press delete.
@djwoo2407
@djwoo2407 6 лет назад
*Thanks* *a* *lot!* *I* *can* *finally* *animate* *phew*
@icer6594
@icer6594 2 года назад
very very helpsul now i request u to make video on jumping and fighting ( attualy how do i get the frame of fihting and jumping i dont have them i only have walking and running and right and left plzzz i request and u are a good teacher also
@FrostedWater
@FrostedWater 3 года назад
How do I make the idle sprite animated? I have the front idle animation working, but whenever I stop it reverts to that.
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
When your character isn't moving, like when no input is being pressed, set image_speed to 1 and set your sprite to idle. If your idle sprite has an animation, it will play.
@alonattar3836
@alonattar3836 6 лет назад
thank you so much!!
@pickleboi2378
@pickleboi2378 3 года назад
Y E S thank you this helped me so much.
@PichuHasStems
@PichuHasStems 7 лет назад
your the best thanks for the help
@blurrminecraft
@blurrminecraft 3 года назад
Question from the future, is there any way i can just create a key down event and then use a begin step for the animation?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Sure. It sounds like you just do what you said.
@ciawares
@ciawares 5 лет назад
Ok, but how to check collisions with pathfinding systems?
@ikkuh87
@ikkuh87 5 лет назад
if i hold shift and only shift my character stops moving (duh) but keeps his running animation because of the vk_nokey, is there a quick and easy way to solve this?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
To solve that specific problem, add a check if only shift is being held and then stop animating if that's the case.
@Scarabola
@Scarabola 7 лет назад
Hello. I'm using my own custom sprites as I go along with this tutorial. How do I set a frame to be the "standing still" frame? (there's 2 frames, 1 for looking down, the other for looking up) Please and thank you.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+StonedApe Start by counting from 0 for the image_index for your sprite and set that to be the standing still frame when you stop moving your character.
@badxamurai3263
@badxamurai3263 4 года назад
Nice tutorial video. Need some guidance. I downloaded the file as png, however, when I imported as strip image, the background stays as white. Is there anything that I missed? Thanks.
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
No, sometimes it does that. If you click on the colour remove tool and select the background, that will remove it.
@buizel7581
@buizel7581 5 лет назад
I have some questions, I hope you could help me. Why my background is white? I'm not sure if that is bad, but how could I make it transparent? And, is better make a sprite on a transparent background in a first place?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
I'd recommend going to open game art and downloading the Sprite directly. If you're using your own, you can use the color remove tool to get rid of a specific color on your Sprite once it's in the editor.
@kiahnte
@kiahnte 5 лет назад
Hey, good video, thanks! I did try downloading your sprite sheet at first though, and when imported, it left a white background, instead of a transparent one (which is also how it appears on the hosting website). I don't know if that problem was with you, the hosting website, or with how I downloaded it? I ended up finding another image (which I still had to import into GIMP to make IT load without a background) and used it to practice with. I was wondering if there's a better way though. I tried the color removal tool, but it was going pixel by pixel. Anyway, good video though, and thanks for making it! I look forward to perusing your other tutorials.
@elenafu1980
@elenafu1980 5 лет назад
if you downloaded it as a jpeg, it will be white. pngs normally register transparency
@raeyon725
@raeyon725 4 года назад
why does my sara have a white background? not like urs transparant how do i fix this
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
I’m not totally sure why that is sometimes. You can find the original sprite sheet on opengameart.com. And you can also do a color remove on the white inside of the sprite editor, which will make the background transparent.
@giwshabazz4896
@giwshabazz4896 6 лет назад
PLEASE HELP because when I Go to object create it gives me
@Xerenas
@Xerenas 5 лет назад
i have a question, theres a game which uses files with the .gmspr extension and i was wondering how to export my sprite animation into that extension
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
I don’t think that extension is used in GMS2, though previous iterations did use it. From what I looked up, that’s just the way the sprite files are saved by default, you can’t export them or anything.
@yigitylmaz9384
@yigitylmaz9384 2 года назад
thanks :D
@prevnn
@prevnn 3 года назад
Hello, my Sprite teleports a lil when I go up or down, know of any reasons why?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Your origins aren’t all the same. Check on each direction that they’re middle center.
@Technonova323
@Technonova323 6 лет назад
Thanks for the help, but I have a question. How do you mirror sprites?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
Depending on how you want to mirror them, flip the x or y coordinate with it's negative opposite. So to flip a walking right sprite to left, multiply its image x by -1.
@aidan8134
@aidan8134 5 лет назад
Hello, I am having trouble with the left and right walk animations. When I press right, Sara moves but the animation is stuck on the frame of her stepping (She still moves). I have the same problem with the left walk animation. Another problem is that I have a white backround on (not the whole screen)my sprite.
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
As far as the animations, are you increasing the image index? Download my project and compare my code to yours, to double check you’ve got it all right. You can remove a color in the sprite editor, choosing the remove color and clicking on the white.
@mx_honey
@mx_honey 2 года назад
Hello! What do you usually use to make your sprites? I'm trying to find a good template and program to use for my game, and I usually do my own art for it. Any recommendations?
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
Aesprite and spriter I’ve heard good things about. I don’t create my own art, I just find free or pay for it.
@Renikee
@Renikee 3 года назад
How can I make it that when I press two buttons (like D first and then W, or W and S at the same time), the character sprite either uses an another one (when I press D first and then W, my sprite turns to the top, but I want it to turn right) or the animation stops? (pressing W and S, or D and A makes it run in one place)
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
The way you code your movement system effects this. If you use only if statements, then multiples of them can trigger, causing your player to not run when pressing opposite keys. If you use if, else if statements, then only one will trigger. Add an else before your if statements, after the first, and you should see the difference.
@Renikee
@Renikee 3 года назад
​Well... Coding is "kinda" difficult 😅 I don't really know where to write else, or what should I write. Like, I have this code: /// Walk right if(keyboard_check(ord("D")) and place_free(x +collisionSpeed, y)) { x += walkSpeed; image_speed = walkSpeed / 3; sprite_index = spr_lily_right_walk; } What should I add? Something like this?: else if(keyboard_check(ord("A"))) { } Image speed? Sprite index?
@kokke-zd4uc
@kokke-zd4uc 6 лет назад
I have problem how to make colision at the same time could you add colisions to this project?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
I’ve got more videos on collision, check out my channel.
@VideoGameMovies
@VideoGameMovies 3 года назад
I dont have an image tab
@shatterstar789rjl
@shatterstar789rjl Год назад
I just made my first sprite now I got the idle done I have to make him run and jump so this helps
@shatterstar789rjl
@shatterstar789rjl Год назад
You can check it out on my page lol it's funny I think
@Gameboyer-J1qf7A1sp9R
@Gameboyer-J1qf7A1sp9R 5 лет назад
One thing: when I press and hold shift and I'm not even moving, the character is still animated. What I want is to fix that so when players press and hold the shift key and they're not moving, it won't animate. Any advice?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
Lots of others have asked this as well, check through the comments on here and you should discover several solutions.
@RhapsodyDusk
@RhapsodyDusk 4 года назад
This video is a life saver! I have a character who has an idle animation for four different directions. This is the code I currently have (I tweaked it a little from your example): if (keyboard_check(vk_nokey)) { sprite_index = spr_champion_front_idle; } How would I set it for every direction?
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Inside that if statement, add another series of checks for your current direction. Then based on that direction set the correct sprite. If you don’t have a variable, just set one on each other key press of movement.
@kawamaster6006
@kawamaster6006 5 лет назад
The sheet appears with a white background wich does not let me see the selection square, can you please tell me how to erase the background so it looks like your sheet?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
In GMS there’s a color remove tool, in the sprite editor. Click on the white with that tool and it will take it all out.
@kawamaster6006
@kawamaster6006 5 лет назад
@@LetsLearnThisTogether thanks :D
@_519_
@_519_ 7 лет назад
Can you import a sprite strip as a layer into another sprite? Say I go into the image editor, create new layer, and I want to import an already finished strip that I have saved as a PNG that will be drawn over top of the default layer.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+B r a n d o n I'm not sure I totally understand your question, but I don't think so. I think you'd need to edit the image in another program, like Gimp, to get what you're looking for.
@Konradix05
@Konradix05 6 лет назад
I'm not sure if anyone mentioned this, but (in Gamemaker Studio 1 at least) using this code if you press the shift key while walking and then let go of it, but NOT of the WASD then your character will keep running. I simply did this to fix this: if (keyboard_check(vk_shift)) { walkSpeed = 7; }; else { walkSpeed = 3.5; }; Also, you get my thumbs up for this exceptional tutorial. I wanted to get into this program, but any tutorials I could find were plain bad. I hope I'm not gonna run into problems using GM1, but I will follow these tutorials anyway :) @EDIT: Actually using this method there is another problem. If you press the shift key while walking and let go of the WASD keys, but NOT of Shift, your character will keep its walking animation even though it's walking. The code is also easily fixed, what you do is replace this line: if (keyboard_check(vk_nokey)) { with this: if (!keyboard_check(ord("W")) && !keyboard_check(ord("S")) && !keyboard_check(ord("A")) && !keyboard_check(ord("D"))) {
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
+Konradix05 code wise, the programs aren't too different. If you look around, you'll find the fixes necessary. And that's something I should have covered originally, and just didn't. Nice work.
@maddyroche2852
@maddyroche2852 5 лет назад
Hey! This vid is great. But when I go to play my character walks right no matter what key I press. Does anyone know how to fix this?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
Paste your movement code on here. My guess is you copied and pasted the x += for the rest of the movement and that’s why you’re always moving right.
@Lodwow
@Lodwow 5 лет назад
Hey, first of all gr8 tutorial!! But I have an issue! When I start the game with my character in (im not using Sara!) When I press the letter "A" the character like teleports up in the screen, super weird and I cant fix it, maybe you know the problem and can help me?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
How much does it teleport? If it’s only a little, then ensure that your sprite origins are all centered. If that’s correct, you’ll need to check your code because it sounds like you’re setting an x or y value instead of adding to it.
@Lodwow
@Lodwow 5 лет назад
@@LetsLearnThisTogether Yea, after I wrote that comment I saw the problem, so I fixed it!
@luginess0
@luginess0 2 года назад
I have a question, if I have multiple sprites and I want them to all be in one animation, how would I do that? When I import a new frame it replaces the original sprite instead of adding a frame.
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
I wouldn’t suggest having different animations in one sprite, but if you’re set on it, then bring them in as separate. Then you can select the frames from one sprite, copy them, and paste them into another.
@luginess0
@luginess0 2 года назад
@@LetsLearnThisTogether thank you!
@painfactory548
@painfactory548 Год назад
Hello, Do you know what can be the Problem when i put a Sprite into my Room and when i start the game the sprite isnt in the room.
@LetsLearnThisTogether
@LetsLearnThisTogether Год назад
The only thing I can think is you’re in a different room or you’re changing the depth of a layer and hiding the sprite before the room becomes visible.
@painfactory548
@painfactory548 Год назад
@@LetsLearnThisTogether yes i found the Problem. I dont know why but my first room wasnt in the rider with Workingplace and the other room. I found and delete this hiden room. thx
@user-wg9xy1ig7b
@user-wg9xy1ig7b 6 лет назад
Thanks for tutorial. For 8 direction movement, not only 4 like in videos, just add example: if keyboard_check(ord ("W")) && keyboard_check(ord("D")) { sprite_index = moveDiagonalRight; (or how you name a sprite for top right movement) } right? Or there is a simple way?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
+Ярослав Соллер Yeah, that would work. If you use just if statements for the movement, you'll move in all 8 directions, but you do need specific if checks to change their sprite like you have.
@MrWeegee
@MrWeegee 6 лет назад
I have a gif but it doesn’t display all of the frames. What do I do?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
When you import the gif, it should bring all the frames in. If it doesn't, my guess is the gif is missing them, not a problem in GameMaker. Try to find the gif again, maybe from another source
@benr77
@benr77 3 года назад
I got stuck on walls, rock, and tree. I kept increasing the collision speed value and trying again. It only works for me for me with a collision speed value of 6 or higher.
@benr77
@benr77 3 года назад
I figured out my problem after reviewing my sprite collision masks for the 4 directions. they were off by size and position by 1 or 2 pixels in some places. I fixed the sprite collision masks to be the same size and position, and now this works great.
@egosactorco
@egosactorco 6 лет назад
Hey, I have a run button for my character, when you hold down shift and press any key they run, when you let go of shift she returns to default speed and image speed, however if I am holding shift and any arrow key, then let go of the key and continue holding shift she endlessly cycles through the walk cycle until I let go of shift, do you know how to fix this?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
+egosactor .co You could add some keyboard_check_released events or code in the step event, to check for the arrow keys specifically. Or have a check if only the shift key is being held down, to stop the animating.
@egosactorco
@egosactorco 6 лет назад
okay thanks I'll look up released events then because I don't know how to do that yet lol, and when I tried having a check for just the shift key I set the image speed to 0 so when I held down shift the character just slid around the screen without any animation, maybe I did it wrong? Regardless thanks
@kassburn1028
@kassburn1028 6 лет назад
The problem from to : if(keyboard_check(vk_nokey)) { image_speed = 0; image_index = 0; walkSpeed= 3.5; } Cause if I hold enter, the game see me press another key so he didnt stop the animation
@kassburn1028
@kassburn1028 6 лет назад
I use this to fix the problem : if(keyboard_check_released(ord("D"))) { image_speed = 0; image_index = 0; walkSpeed= 3.5; } if(keyboard_check_released(ord("Q"))) { image_speed = 0; image_index = 0; walkSpeed= 3.5; } if(keyboard_check_released(ord("S"))) { image_speed = 0; image_index = 0; walkSpeed= 3.5; } if(keyboard_check_released(ord("Z"))) { image_speed = 0; image_index = 0; walkSpeed= 3.5; } // Don't try to do this if(keyboard_check_released(ord("D"))) || (ord("Q")) || (ord("S")) || (ord("Z")) { image_speed = 0; image_index = 0; walkSpeed= 3.5; } //You're animation will not activate when you gonna press ZQSD keys
@samsmiley884
@samsmiley884 6 лет назад
Also, if you do Light's solution, one more problem comes up in that the game wont reset your walk speed to 3.5 until you release all the keys. The result is that pressing shift once while walking will lock you into running until you stop pressing any keys, making it impossible to to go from a run to a walk without stopping. One solution is this: if(keyboard_check_released(vk_shift)) { walkSpeed = 3.5; }
@conrade3988
@conrade3988 3 года назад
i cant get my sprite to show when i run it.Any help?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Is the Visible box unchecked? Do you have any room layers above Instances?
@programpurpose9782
@programpurpose9782 5 лет назад
is there other software for creating sprite sheets, and whats the normal size for pixel art and vector graphics in games.
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
There’s lots of software, really any drawing program can be used, but there are many specifically made for 2D sprites. Look it up and you’ll find lots, I don’t have much experience with them. As for sizes, totally depends on your game. I prefer the 32 bit look, but many use 8 bit for super old school.
@programpurpose9782
@programpurpose9782 5 лет назад
@@LetsLearnThisTogether cool, thank you
@zico2479
@zico2479 4 года назад
My sprite scrolls through the animations even when it’s not moving?
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
That’s because your sprites image_speed needs to be set to 0 once you stop moving.
@taoliu7312
@taoliu7312 6 лет назад
Great video! I have a question, if W+D, the speed of the diagonal, how to solve?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
Others have asked that, and I've I've given some answers, try and find them on here. I believe you just need to add some more checks for multiple buttons, and slow down the speed overall.
@taoliu7312
@taoliu7312 6 лет назад
Okay thank you
@ShiroPlacid
@ShiroPlacid 2 года назад
Huge thanks m8. One question can I somehow make sprint on V with ord its pretty buggy and I dont want shift to be running.
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
You can change any of the controls to whatever makes sense.
@ShiroPlacid
@ShiroPlacid 2 года назад
@@LetsLearnThisTogether When I use ord and press the key I made it onto it will make my character move to the right and it wont stop even if I let go. Why is that?
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
Sounds like a logic error you’ve got, as the code is working. If you’re using the built in speed property to set your movement, you must set it back to 0 otherwise you’ll always keep moving. If you have a different system, you probably need a keyboard_check_released on your v character so you can set your move speed back to 0.
@ShiroPlacid
@ShiroPlacid 2 года назад
@@LetsLearnThisTogether ok thx
@ShiroPlacid
@ShiroPlacid 2 года назад
@@LetsLearnThisTogether helped me a lot
@MM-xm8ot
@MM-xm8ot 5 лет назад
Help! I am using Mac and the trial version of GameMaker studio 2. There is no option for "import sprite sheet" it's just "import" and no option to "convert to frames" either. Maybe this is because I am using the trial version?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
Hmm. I don't think that's because of trial, but it's possible. You can download my project from the description, and then inside of sprites, you'll find the individual images there that you can use. Try that. It may be because you're on a Mac but that seems unlikely, too.
@MM-xm8ot
@MM-xm8ot 5 лет назад
@@LetsLearnThisTogether Thank you so much, I finally figured it out!! I really appreciate the helpful video!
@canchrisget500subswithcomm8
@canchrisget500subswithcomm8 7 лет назад
Hey, what video would you recommend for learning how to make dialogue boxes? I want to add some text to my game.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
I'd recommend my series: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_4c2l6jXjDw.html The first two will show you how to set up just dialogue boxes to be used in any kind of situation, The last 3 will show you how to have full conversations in your games.
@canchrisget500subswithcomm8
@canchrisget500subswithcomm8 7 лет назад
Thanks a TON dude! Not only do you have good videos, but you are the first game maker tutorial maker that actually answers my questions, and with helpful replies. Thanks!
Далее
The Trump rally shooting from a photographer's POV
00:58
skibidi toilet 76 (full episode)
08:11
Просмотров 11 млн
The Basics of Paths in GameMaker Studio 2 - Tutorial
15:28
Make your first GameMaker game in 12 minutes
12:01
Просмотров 123 тыс.
Creating & Changing Rooms in GameMaker 2.3
23:19
Просмотров 27 тыс.
GameMaker Tips & Tricks For Beginners 2023
19:39
Просмотров 4,7 тыс.
GameMaker Studio 2 - Random Level Generation
30:57
Просмотров 112 тыс.
GameMaker Quick Tip: Importing Sprite Sheets
3:57
Просмотров 61 тыс.
Make Your First Physics Game!
29:12
Просмотров 3,2 тыс.