I gotta say. This guy talks so much and his videos can be shortened by at least 5 minutes if he would just not ramble so often...But that is what makes these videos so DAMN GOOD. You hear every little detail about everything your doing at all times. your never left behind. You are an excellent teacher sir, and I thank you for your education.
Wayback Machine of GMToolkit brought me right here in 2023. You've been doing this a long time Shaun, and I really respect your creative output. Keep going!!!
Shaun Spalding used to be the guy to avoid because he doesn't use Drag n Drop. Now I understand the awesome power of GML, Shaun Spalding is my go-to-guy, I dunno what I'd do without him. Fo reals.
I have a feeling your videos will start to get a lot more views since the game maker went on sale on steam! Thank you very much for the reply I look forward to the next tutorial.
Have to say this is by far the best resource for tutorial learning i've seen for GM:S please keep up the great work. I am looking forward to more tutorials explaining more complex things! (If you take requests) I am hoping to find a working and displayed timer in GM that counts up and lets you save/store that data securely in a file. (Think time trials then saved to show best times). If not then no worries figured it wouldn't hurt to ask ;)
If you could expand on that, I'd be extremely interested. I'm very curious about the whole field and I'm honestly not quite sure what to think of it, in may different aspects.
hey can you make a tutorial on how to interact with buttons,leavers stuff like that? sorry if im not describing it properly i mean like activating a button which triggers a ladder to appear or somthing
I would like to thank you for your tutorials thus far. They have been informative and extremely well put together. I like that you put the code alongside the gui version of doing things. In your last tutorial you said that this would be useful if you had a pickup to change the bullet type. I was wondering if you could go more in depth about this process as well as making the pickup disappear and having a bullet count and weapon cease fire when out of ammo. Thanks again for the tutorials!
Alternatively to rotating the image you can use 'image_angle = direction + 90;' and that will work correctly with an image facing up vertically. Any angle can be reverse engineered that way be adding the difference from a 0 degree right
I am trying to find a way for a platform game for the rotation for the player to go up and down slopes and follow the path it needs to follow freely. Like for instance a mine cart that goes up a slope then it follows the ramp and moves back to right angel you know?
I rotated my player he turns around just fine but when I shoot it continues to go up any idea how to make the bullets go where ever the characters facing?
How can I make the object rotate? Not just the sprite. I'm trying to make a 2d platformer where you can turn off the gravity and then propel yourself through the air freely and I wanted to make it so that if you had an object snapped in front of you it would move and rotate to stay in the same relative position. I also wanted to do something where if there was a floating box you could rotate yourself so that it is now under you and then you could walk on the box.
Instance and image are what I meant. And I still don't know how to rotate the instance, or if it's possible. What I wanted was to be able to rotate the instance so that I can check what is under the player and when he rotates what is considered under the player rotates with him. Rotating just the image means I'd have to do lots of coding to check if something is in a specific spot when his angle is a certain number. I'm prepared to do that, but if there is a simpler way than I'd rather do that.
What about if I have what you taught us in the first tutorial, where you jump to 0,3 relative location. I want my character to rotate, but it doesn't work if you use jump. Does anyone know some way to get it working?
I'm trying to make a platform game where you dodge missiles. How would i make it so that the missile's rotation has some sort of delay? Like so it doesn't just turn instantly towards you which makes the game extremely difficult.
could you show a tutorial how to make enemy objects step around other objects? I am currently making an rpg game for a project but the enemies keep on running into a wall and not stepping around it.
Thanks for these Tutorials! Was confused how the UI worked and such for GMS, but thanks to you I got started. I already have basic knowledge of C#, but I wouldn't have figured out where to put the code without your help. Managed to code in a simple upgrade for the triple shot, make enemies have 5 health each and make them shoot down every 10 seconds Just curious though, will you be talking about Enemy behaviour in a future video? So they shoot towards the players position and such? Keep it up!
I have a questions, I changed the part where my bullet is coming from in the spirit image and set it to the right of the spirit. However the bullet from that location just moves straight up and not where my mouse is located from that angle on the sprite. Is there any way for me to change it so that the bullet is in that position but when I shoot it, it will go where my mouse is pointed.
Can someone link to me the tutorial that explains how to change the sprite to face the direction im pressing.(I am making a platform game, and I use the up arrow key to jump, but the jump sprite animation is set to the sprite imagine that looks like hes jumping to the right. If I jump to the left, my guy jumps perfectly fine but the object uses the same sprite for the right jumping action.)
I know this is 3 years late but here you go. Maybe this'll help someone else. In your controls make sure moving left is set to negative like this: key_left = -keyboard_check(vk_left); key_right = keyboard_check(vk_right); In your player's create event make sure to set the hsp and movespeed: hsp = 0; movespeed = 4;
Is there a reason you're resetting the sprite rotation every step? Wouldn't it make more sense to just set it once, when you make it? Or does if go back to default if you don't do it every step? It seems like a waste of CPU to have them reset every frame.
Just kidding. For starters, look up how to make things appear out of frame as you move. There was a tutorial on how to make an 1942-like airplane shooter, one of the very first tutorials. Start there.
What do I do? Anyone? I am making a game where you can turn 360 degrees. The character is turning towards the mouse. How can I make a hitbox next to the player in the right direction?(The direction the mouse is)
I'm currently creating a 2D side scroller. My main character's weapon is a boomerang. How can I get the boomerang to spin while moving and then return to the player? Do I have to create an animation or can I just rotate it with some code/drag&drop?
Help? (please link to good & relevant tutorials, thanks!) I want to make a space ship game, and I want my ship to glide around without any friction, so if I accelerate in 1 direction and then turn 90 degree I will continue gliding in the first direction, but when I then accelerate I will start to glide more and more towards that new direction, but still keep the initial momentum from the first acceleration, I managed to do it with hspeed & vspeed but I couldn't turn, then I tried speed & angle but that made it so the ship behaved like a car.
I am assuming you mean when sonic runs up and around loop? You could set image_angle to 90degrees + direction of the floor. That would work running from left to right and you would want to modify that for running thru a loop right to left. Just an idea. Haven't done it myself
Dude I was making a side scrolling 8-bit adventure game and the first set of tutorials helped me but the newer ones like this one, i didn't learn ANYTHING from it.
i have a ship that moves in all directions using rotation but i'm having trouble making my bullets track my ship's direction so that they always fire out of the front. Like, I'm having problems referencing the direction of one object so i can set another object relative to it. can you help?
you make left and right instead of moving you in those directions, make them change your direction, also i have already solved my own problem that i listed above
When i created the bullets i set them to a variable, and set that variable's direction to be the image angle of the ship. Though i came to another problem with that, where the bullets will spawn from the ship's origin instead of the ship, and the obvious answer would be to move them, but the ship rotates and moving them to a different fixed position wont help. I might have to use trig the get the bullets to come out of the guns instead of the center of the ship.
SuperScope004 set your origin in the point where you want the bullets to fire, then. Sure it may mess some of your other settings, but it's probably the most simple way
I tried to do this before watching the video and I succeeded... But after watching the video I realized I did it the hard way by typing variable.image_angle+= whatever the angle is, on each of those bullets. Shyiiiiiiiiit!
I gotta say. This guy talks so much and his videos can be shortened by at least 5 minutes if he would just not ramble so often...But that is what makes these videos so DAMN GOOD. You hear every little detail about everything your doing at all times. your never left behind. You are an excellent teacher sir, and I thank you for your education.
Wayback Machine of GMToolkit brought me right here in 2023. You've been doing this a long time Shaun, and I really respect your creative output. Keep going!!!
Shaun Spalding used to be the guy to avoid because he doesn't use Drag n Drop. Now I understand the awesome power of GML, Shaun Spalding is my go-to-guy, I dunno what I'd do without him. Fo reals.
"he's" a girl now
@@Cryptic_YTReal I'm aware, thank-you. However the 10-year-old comment was not.
Hello my friend, just a question, can you create please a tutorial about creating a seesaw?? I would really thank you
These are way better than the offical Game Maker tutorials!!
I have a feeling your videos will start to get a lot more views since the game maker went on sale on steam! Thank you very much for the reply I look forward to the next tutorial.
Have to say this is by far the best resource for tutorial learning i've seen for GM:S please keep up the great work. I am looking forward to more tutorials explaining more complex things! (If you take requests) I am hoping to find a working and displayed timer in GM that counts up and lets you save/store that data securely in a file. (Think time trials then saved to show best times). If not then no worries figured it wouldn't hurt to ask ;)
If you could expand on that, I'd be extremely interested. I'm very curious about the whole field and I'm honestly not quite sure what to think of it, in may different aspects.
Could you do a tutorial on turrets, and how to make them aim at a target
hey can you make a tutorial on how to interact with buttons,leavers stuff like that?
sorry if im not describing it properly i mean like activating a button which triggers a ladder to appear or somthing
I would like to thank you for your tutorials thus far. They have been informative and extremely well put together. I like that you put the code alongside the gui version of doing things. In your last tutorial you said that this would be useful if you had a pickup to change the bullet type. I was wondering if you could go more in depth about this process as well as making the pickup disappear and having a bullet count and weapon cease fire when out of ammo. Thanks again for the tutorials!
Alternatively to rotating the image you can use 'image_angle = direction + 90;' and that will work correctly with an image facing up vertically. Any angle can be reverse engineered that way be adding the difference from a 0 degree right
I am trying to find a way for a platform game for the rotation for the player to go up and down slopes and follow the path it needs to follow freely. Like for instance a mine cart that goes up a slope then it follows the ramp and moves back to right angel you know?
question why not just make sure to check image direction at the start of its creation instead of every frame? is there a difference?
I'm not sure why you said the bullets looked odd in the last video because they shot out at the angle you set them....they looked just fine to me...
Or if the possition for the bullet for you is "upwards" or 90 degrees (egineering angle) just do a command image_angle = direction-90:
So if i were to make an arrow shoot up and it has gravity it would change the anlge along its trajectory?
awesome, is it everything you thought it would be?
Does anyone know how to display the angle the player is facing above a sprite?
can you tell me how to limit the rotation for a turret on a spaceship for example
I rotated my player he turns around just fine but when I shoot it continues to go up any idea how to make the bullets go where ever the characters facing?
How can i make a collision with rotating sprites???
Bullet Object-> Create Event -> Blue arrow move action -> Direction: image angle of Player Object
How can I make the object rotate? Not just the sprite.
I'm trying to make a 2d platformer where you can turn off the gravity and then propel yourself through the air freely and I wanted to make it so that if you had an object snapped in front of you it would move and rotate to stay in the same relative position.
I also wanted to do something where if there was a floating box you could rotate yourself so that it is now under you and then you could walk on the box.
Instance and image are what I meant. And I still don't know how to rotate the instance, or if it's possible. What I wanted was to be able to rotate the instance so that I can check what is under the player and when he rotates what is considered under the player rotates with him. Rotating just the image means I'd have to do lots of coding to check if something is in a specific spot when his angle is a certain number. I'm prepared to do that, but if there is a simpler way than I'd rather do that.
Thanks a lot. I'll try it out.
What about if I have what you taught us in the first tutorial, where you jump to 0,3 relative location. I want my character to rotate, but it doesn't work if you use jump. Does anyone know some way to get it working?
can someone tell me please how to change the sprite angle like the horizontal one he made thanks.
I'm trying to make a platform game where you dodge missiles. How would i make it so that the missile's rotation has some sort of delay? Like so it doesn't just turn instantly towards you which makes the game extremely difficult.
You could use the alarms and have the missile rotate after the alarm and maybe have different levels the alarm gets faster.
What would you do in case you wanted to rotate the room (with the gravity aswell)?
how do i rotate a static image to have 4 sides? like one for up, one for down, and the ones for left and right
how to rotate the view according to the rotation of the object in game maker so that the object rotates but it seems as the view is rotating
could you show a tutorial how to make enemy objects step around other objects? I am currently making an rpg game for a project but the enemies keep on running into a wall and not stepping around it.
same here
Sky Hawk Learn about machine learning. That will be a great solution.
Thanks for these Tutorials! Was confused how the UI worked and such for GMS, but thanks to you I got started. I already have basic knowledge of C#, but I wouldn't have figured out where to put the code without your help. Managed to code in a simple upgrade for the triple shot, make enemies have 5 health each and make them shoot down every 10 seconds
Just curious though, will you be talking about Enemy behaviour in a future video? So they shoot towards the players position and such? Keep it up!
Hi! How can i rotate a object that is made by: draw_rectangle(); ?
changing the var image_angle doesnt help... Please help!
Where you able to solve it? I'm having the same issue
DanskyRev I wasnt able to solve it. I havent found answers, if you find sth. that works, i would be very thankful if you give me a answer :)
I have a questions, I changed the part where my bullet is coming from in the spirit image and set it to the right of the spirit. However the bullet from that location just moves straight up and not where my mouse is located from that angle on the sprite. Is there any way for me to change it so that the bullet is in that position but when I shoot it, it will go where my mouse is pointed.
***** how do i make my player flip to the direction im moving i cant seem to make it work
Can someone link to me the tutorial that explains how to change the sprite to face the direction im pressing.(I am making a platform game, and I use the up arrow key to jump, but the jump sprite animation is set to the sprite imagine that looks like hes jumping to the right. If I jump to the left, my guy jumps perfectly fine but the object uses the same sprite for the right jumping action.)
I know this is 3 years late but here you go. Maybe this'll help someone else.
In your controls make sure moving left is set to negative like this:
key_left = -keyboard_check(vk_left);
key_right = keyboard_check(vk_right);
In your player's create event make sure to set the hsp and movespeed:
hsp = 0;
movespeed = 4;
How do u connect a gun to the player
Is there a reason you're resetting the sprite rotation every step? Wouldn't it make more sense to just set it once, when you make it? Or does if go back to default if you don't do it every step? It seems like a waste of CPU to have them reset every frame.
The object's image_angle will then face the right direction, even if direction changes during the game
I want to spin a wheel on its axis, pls tell me how to do that.
Is there any way to make a "room" infinite and procedurally generated?
Just use the "Infinite Room" button!
Just kidding.
For starters, look up how to make things appear out of frame as you move. There was a tutorial on how to make an 1942-like airplane shooter, one of the very first tutorials.
Start there.
What do I do? Anyone?
I am making a game where you can turn 360 degrees. The character is turning towards the mouse. How can I make a hitbox next to the player in the right direction?(The direction the mouse is)
Your tutorials are great. Just curious do you have any experience in completing a game or selling a game or working in the industry too?
how can i rotate a object towards accelerometer?
I'm currently creating a 2D side scroller. My main character's weapon is a boomerang. How can I get the boomerang to spin while moving and then return to the player? Do I have to create an animation or can I just rotate it with some code/drag&drop?
How would I make an object spin fast and stop on a random spot? Like a game show wheel
something with timers and image_angle += 1 but idk how to make it random
Use something like test chance in the drag and drop event to make it random
Help? (please link to good & relevant tutorials, thanks!)
I want to make a space ship game, and I want my ship to glide around without any friction, so if I accelerate in 1 direction and then turn 90 degree I will continue gliding in the first direction, but when I then accelerate I will start to glide more and more towards that new direction, but still keep the initial momentum from the first acceleration, I managed to do it with hspeed & vspeed but I couldn't turn, then I tried speed & angle but that made it so the ship behaved like a car.
***** Thank you!
Does anybody know how i can make space ship enemies in an arcade style shooter have its image_angle face the player wherever it moves?
+Scope Gaming jibransyed.wordpress.com/2013/09/05/game-maker-gradually-rotating-an-object-towards-a-target/ is this what you're looking for?
Devin Huffman Yeah, its exactly what im looking for, thank a lot! :)
Hi, can you make a sonic slope tutorial it would be very awsome if you do.
im making a platformer game with a duck as my main character i've enetered this code into a step event but my game jus acts like it's not even there
man i wish there was a way to make a background spin. it would be especially useful on title screens and menu screens. oh well. :(
how i can make an object to rotate using keyoard???
how to calculate RPM in gms, please help
Please do a tutorial on rotating tiles as I can only perform one transformation at a time and not together. I'm taring my hairs out.
Can someone please link me to the background image he's using?
You can search on images on google i guess, but you can do it by yourself, It's not difficult
Mauricio Arizaca
I know, it's just that after looking for 15 minutes I hadn't found a good image. I found one after I left this comment, though.
So, uh, gonna tell us how to do the scrolling background?
Nevermind, I basically figured it out.
SensibleGaming i wanna know if i can make a object move in X angle, if it come in contact with another object.
its also in his first video in this playlist ;), the code would be x+= 2;
SensibleGaming He did tell us how in like, the second video.
Hayden Hawley I made that comment ages ago.
How i make like a rotation character in a loop? (like sonic)
no like an loop of sonic 1 (the rotation at loop)
ok...
I am assuming you mean when sonic runs up and around loop? You could set image_angle to 90degrees + direction of the floor. That would work running from left to right and you would want to modify that for running thru a loop right to left. Just an idea. Haven't done it myself
How do you make a object face another?
Thanks!
Dude I was making a side scrolling 8-bit adventure game and the first set of tutorials helped me but the newer ones like this one, i didn't learn ANYTHING from it.
i have a ship that moves in all directions using rotation but i'm having trouble making my bullets track my ship's direction so that they always fire out of the front. Like, I'm having problems referencing the direction of one object so i can set another object relative to it. can you help?
you make left and right instead of moving you in those directions, make them change your direction, also i have already solved my own problem that i listed above
SuperScope004 How did you fix it?
When i created the bullets i set them to a variable, and set that variable's direction to be the image angle of the ship. Though i came to another problem with that, where the bullets will spawn from the ship's origin instead of the ship, and the obvious answer would be to move them, but the ship rotates and moving them to a different fixed position wont help. I might have to use trig the get the bullets to come out of the guns instead of the center of the ship.
SuperScope004 set your origin in the point where you want the bullets to fire, then. Sure it may mess some of your other settings, but it's probably the most simple way
Not really what I was looking for, but this could help me with my Shoot Em Up.
when I start the game, my sprites just stay facing the right and don't turn whatoever
excuse me sir how can i get a book
wheres the video for how to do the shooting stuff
just so you know, the angles are based on the unit circle used in mathematics ;)
For those who are too lazy to turn your sprite bullet image into a horizontal bar, all you have to do is simply put: image_angle = direction-90;
do you even math?
Thanks, man for your tutorials there really helpful, they helped me create my first game,
That explains a lot.
Awesome, looking forward to it!
Oh believe me I am :) Just sucks that I'm such a poor pixel gfx artist hehe.
Thank you so much for this video you are amazing
Oh and it's displaying accurately minutes/seconds/milliseconds ;)
I tried to do this before watching the video and I succeeded... But after watching the video I realized I did it the hard way by typing variable.image_angle+= whatever the angle is, on each of those bullets. Shyiiiiiiiiit!
thanks
or + 90, it depends.
thankyou!
you should already know that if you watched his previous videos.
THANK YOU SO $%#&ING MUCH!!!!!!!!!!!
nope
I’m not a guy, I’m a girl!
I am trying to make a car drift a little when it turns. How do I do that?
friction