Тёмный

Gamemaker Slopes Tutorial! (Platformer Part 6) 

Peyton Burnham
Подписаться 21 тыс.
Просмотров 10 тыс.
50% 1

Part 6 of 9 in "How to Make a Platformer in Gamemaker!" You can also download the fully finished project file for this series on my Patreon!
Patreon: / peytonburnham
Wishlist Starcross Starcade Special! store.steampow...
Rose of Starcross Trailer: https: // • Rose of Starcross Kick...
Starcross Starcade Special Trailer: • Starcross Starcade Spe...
My tweets: / peydinburnham
Rose of Starcross Demo: peytonburnham....
Discord: / discord
My twitch: / peydinburnham

Игры

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@Milu_Indie
@Milu_Indie 5 месяцев назад
"I love your videos, they help me learn and develop my own games! Please! Keep it up for a long time!"
@aisugamedev
@aisugamedev 5 месяцев назад
i swear, these are probably the best game maker tutorials out there. i am actually getting stuff that previously threw me into an endless cycle of restarting my project over and over done now.
@_billz_
@_billz_ 4 месяца назад
I couldn't agree more! I have always had issues with slopes and platforms and these tutorials have shown me how to move forwards!
@flawastaken
@flawastaken 2 месяца назад
spent solid 20 minutes trying figuring out why the player sprite was shaking so much while running up. Found out that xSpd = 0 was outside the else bracket... fml
@unitman0
@unitman0 2 дня назад
thank you, my same issue!
@ShaolinMonkster
@ShaolinMonkster 6 месяцев назад
The tutorials are so high quality. And those small pieces of advice u occasionally give about how to approach the tutorial/what to be careful of, are accurate and very helpful.
@drane6336
@drane6336 3 месяца назад
I had a really strange problem with this, I followed everything in order I've been checking for hours now and I can't figure out why the character starts to just levitate instead falling, it was working until i reached near the last minutes of the video, then the character just doesn't fall The strangest part is that I can go down slopes and everything but the moment I press the spacebar the character stops falling I think I have to start form scratch I can't do anything to fix it EDIIITTT!!!! I FINALLY MADE IT, IT WOOORKSSSS!!!!! The solution: in minute 21:56 we can see that the "yspd = 0;" it's inside of the "if" that starts at line 118, I had it outside, so the code wasn't checking for that, now it's doing it, now Maria falls again, NEVER GIVE UP
@werecus
@werecus 3 месяца назад
anyone else have spotty results walking down slopes at dif speeds? It works with the movement values in the vid but after setting walk and run speeds to 1 and 2 and colliding with a wall once, the player skips down the steps again
@hayabusoft3504
@hayabusoft3504 19 дней назад
Mine also skips down the slopes, no matter what movement speed I have applied. Novice programmer here, so not sure how to go about fixing that!
@werecus
@werecus 18 дней назад
​@@hayabusoft3504 I ended up doing some hacky thing before realizing my issue was having compatibility mode on, so collisions were working the old way while this video relies on the new way
@hayabusoft3504
@hayabusoft3504 18 дней назад
@@werecus I found it, mine wasn't on compatibility mode, I simply forgot to put a ! in front of the first place_meeting check. Fixed the problem.
@jam8munch811
@jam8munch811 7 месяцев назад
Collisions, they’re touchy… yes they are things touching hhaha
@psychotic4560
@psychotic4560 6 месяцев назад
I have spent probably 20 hours over my first two months of coding experience trying to figure this out. I got so excited when I saw this was a planned episode. I can now... finally... go up and down slopes!! Thank you Peyton, this unlocks so much for me and my silly little game.
@PapaBrrr
@PapaBrrr 7 месяцев назад
Definitely going to have to watch this one when I get off work today thank you so much
@HiraganaMitsuDe
@HiraganaMitsuDe 9 дней назад
Hello, Ive been following along your tutorial but I ran into something strange, when going down a slope, if you change directions halfway and try to climb that same slope, the player object cannot move in that direction and gets kinda stuck as if there was a wall in front of him, you can only jump or move down the slope. Also, while going down slopes is smooth when you start from flat terrain, if you go up a slope and then turn around midway, the character kinda goes airborne for a bit instead of smoothly going down. This only happens with 45 degree slopes since those are the only ones I plan to use in the game. Any idea what may be causing it or how to fix it?
@HiraganaMitsuDe
@HiraganaMitsuDe 9 дней назад
never mind it was something silly, the origin point of my sprite wasnt in the middle center
@PRc00k13z
@PRc00k13z 7 месяцев назад
Hey this series is really great! I do have an important question though, my game DOES have those uncommon slopes since i have more sonic-like terrain, how could i alter the slope code to account moving up and down those steeper than 45 degree slopes? (dont need 360 degree sonic movement just steeper slope help, maybe up to 90 degrees?) or is this going to be something touched on in the next parts? thanks again for these series!!
@peytonburnham4316
@peytonburnham4316 7 месяцев назад
Hey! Sonic type stuff is actually a totally different beast and would unfortunately probably need its own custom approach/engine. This video does mention how you could make steeper slopes (i mention it with ceiling slopes but it would work the same way with floor slopes) BUT that couldnt easily be modified to include stuff like 90 degree slopes :(
@PRc00k13z
@PRc00k13z 7 месяцев назад
@@peytonburnham4316 ah okay thanks! i didn’t catch that, honestly that method should work fine, if i need a more advanced slope collision for 90 degree stuff later then i will look into it but thanks again!
@AvaQuava250
@AvaQuava250 2 месяца назад
12:24 That 'sorry' was so genuine! Its ok man we all want our code to look nice you dont have to worry!!!
@magnus.74
@magnus.74 7 месяцев назад
I fucking love u bro
@Spookyn.
@Spookyn. 5 месяцев назад
Amazing. I've been learning a lot from your vids so yeah... thx. (Honestly, my dream goal for slopes would be the ones that i usually see in sonic games, but this works just fine)❤❤
@ghostyc04
@ghostyc04 7 месяцев назад
The best gms 2 guides I've seen so far, ngl. Keep it up, buddy:3
@scottfletcher9773
@scottfletcher9773 5 месяцев назад
Can this slope code work with higher resolution objects? I am trying to do a game with 256 x 256 pixel wall blocks and a similarly sized player character (I just like smooth detail) . when I try to go up slopes with this code, it won't go unless I raise the subpixel number by at least a factor of 16 and even then it is super twitchy. Any ideas?
@bigjohnsbreakfastlog5819
@bigjohnsbreakfastlog5819 3 месяца назад
I really appreciate the work you've put into this. One thing I've struggled a bit is that my character is stuck in an idle sprite when going up and down slopes unless I've stretched out the slope until its just gentle enough. I wonder if I've done something wrong during the coding process to cause this kind of irregularity?
@emilieblicharz295
@emilieblicharz295 5 месяцев назад
Hello,your work is amazing, thanks for doing all this tutorials,it's help me and other a lot ! I had a question about those slope though, Can we make them slippery ? maybe you already say it so i'm sorry if this question is kind of annoying.
@heyitsbuddah1270
@heyitsbuddah1270 4 месяца назад
Dude, I cannot THANK YOU enough for doing this! You're tutorial for this genre has been stellar and you're way of explaining what's happening as you speed through is so critical. I'm a complete noob to making games, but it's always been a true dream/ passion to get this started. Running through this to build a foundation as I learn (coding is so hard to understand sometimes lol) and adding my own flare has been beyond fun. I hope you get ALL the credit and recognition you deserve for going out of your way to make this for people just like myself. Thank you for helping us get a foot in the door! Last, where did you learn to code? Any suggestions aside from "just do it" to help better my understanding of core concepts and problem solving?
@FolksFox
@FolksFox Месяц назад
I'm thinking there needs to be a friction modifier when hitting a ceiling slope. It feels wrong to move up the same height as a normal jump. What I'm doing for now, is subtracting from the jump hold timer in each ceiling slope meeting event(so right after(or right before should be fine) setting _slopeSlide to be true). I think this works. Feels kinda band-aidy, but in terms of game feel, it makes more sense the the friction of fighting the slope makes it harder to climb further up. I think ideally, the jump speed should be reduced, so it looks a little slower too. But imo it doesn't seem to noticeable that we're jumping at the same speed against a slope and otherwise.
@LF21Hungry
@LF21Hungry Месяц назад
yknow, you've been a huge inspiration for me, so i wanted to ask, is maria your own character? if so, i would like to include her as a playable character for ny platformer, unlockable if someone looks at the credits and clicks your name
@MatTheInsomniac
@MatTheInsomniac 2 месяца назад
Also, dumb question, but whenever I'm in the code, my mouse cursor goes invisible. Any way to fix it?
@stakfallt2040
@stakfallt2040 3 месяца назад
If you wanted the character to be able to walk up walls or walk along the ceiling, could you just use the angle (rotation) of the player sprite and apply gravity using the same angle (rotation) of the player sprite and converting from the polar coordinates to x, and y (where maybe the theta might be the speed the player is "falling" / speed the player has accumulated due to gravity)? I feel like that would get you fairly close because so much of the movement is based on the effect gravity is having on the player object.
@crewposter939
@crewposter939 2 месяца назад
does this work on higher resolution slopes? (for going down slopes) also i noticed after this turorial that if i spam the space bar fast enough (4 cps) i will be able to keep jumping infinitely and my sprite doesnt change to the jumping sprite until i stop spamming (also i skipped coyote time and hold to jump higher, is that a problem?)
@remixtrick
@remixtrick 5 месяцев назад
Ok so MOST of this works perfectly fine, very epic and cool work you've done here, BUT I noticed an issue that causes the whole game to crash: If you place a slope in the air (pointy end down) and place a block directly underneath said-slope, the game crashes whenever the player jumps into the slope from either side. At first I thought the game was crashing because the slope was trying to push the player into the block, but since it crashes when the player touches the other side of the slope (which is flat), that's probably not the case. This issue is probably never gonna come up in normal gameplay because placing walls and slopes like this looks pretty strange, but I wanted to try to fix it anyways and I was just curious if you already ran into this issue and already know why it crashes. Here is the error I get when the game crashes, in case that helps. I moved my code to the create event so I could put it in a state machine, but the problem was still there before I did that: ERROR in action number 1 of Step Event0 for object oPlayer: Variable .yspd(100137, -2147483648) not set before reading it. at gml_Script_anon@3436@gml_Object_oPlayer_Create_0 (line 440) - && ( _listInst.yspd
@waylonoconner9121
@waylonoconner9121 2 месяца назад
Anyone else having the issue that once you reach the bottom of a down slope it freezes the game? I there is an adjacent UP slope it will fling you to that slope, otherwise it freezes? Any help?
@Cnidrion-1
@Cnidrion-1 7 месяцев назад
Yay! Ive been waiting for slopes
@CraigHodson-e8m
@CraigHodson-e8m 17 дней назад
Another great one thanks. see you in #7
@mannyfresh-qc8nq
@mannyfresh-qc8nq 2 месяца назад
thnk you bro this was very helpfull
@maau26
@maau26 29 дней назад
YOU JUST SAVED ME MONTHS OF WORK, THANKS
@MatTheInsomniac
@MatTheInsomniac 2 месяца назад
By the way, about the sliding down ceiling slopes, would this be whenever we jump into them, hold the jump button on them, or jump into them and hold left/right (depending on the slope direction)?
@MatTheInsomniac
@MatTheInsomniac 2 месяца назад
Because for me it only slides whenever I hold the jump key up to the ceiling slopes and hold a left/right key
@rogformer
@rogformer 2 месяца назад
Great tutorial. I am getting a hard crash every time I try and interact with the left sloped ceiling. I can't figure it out, but it's fine, this isn't really something I'm going to need for my ideal game, but tried my best to follow along the entire time and learned a lot. Onto the next one! I'm sure it's gonna be a shorter.... 2 HOURS?! Time to strap in!
@JamBadguy
@JamBadguy 2 месяца назад
when I'm walking up the slopes my character is very jittery, no clue what I've done wrong.
@JamBadguy
@JamBadguy 2 месяца назад
I found the reason, when I was putting the old code in the else statement, I didn't put xspd = 0 in there as well, which meant my speed kept getting reset.
@studentesso
@studentesso 3 месяца назад
Hi, sorry but when my character goes up a ramp at a speed greater than 1 pixel it does the strangest thing, it's like phasing bewteen two positions each frame, forward and backward... I can't figure out what the problem is due to I've tried to fix it but I just can't. I even copied the slope code verbatim but no luck....
@SodieSquad
@SodieSquad 3 месяца назад
Hey I've made it this far following along, love it so far thanks for the effort you put into this. I was wondering, could you provide a guide as to how to add a parallax background movement system to this? I am trying to fiddle around in the camera you provided but can't get the layers to move in my step event. Thanks
@Eli_bcspn
@Eli_bcspn 2 месяца назад
17:29
@Eli_bcspn
@Eli_bcspn 2 месяца назад
8:50
@planetaryashes
@planetaryashes 5 месяцев назад
i think this whole series of tutorials is an awesome starter for people that want to get into using game maker studio!!
@lost50
@lost50 7 месяцев назад
What if you want the bottom center of the player to be tangent to the slope?
@autismandgaming4532
@autismandgaming4532 5 месяцев назад
How come you place down multiple slopes instead of just increasing the size of the existing slope?
@bumpleGrumpGames
@bumpleGrumpGames 5 месяцев назад
If a single slope object is stretched too far, each "step" will be transformed into several pixels as opposed to 1 per step. His code is written for single and sub-pixel amounts. This could be why one would make such a choice.
@kadrickw7817
@kadrickw7817 7 месяцев назад
how do i fix if !_slopeSlide
@KG_ZZ
@KG_ZZ 6 месяцев назад
i cannot go up slopes even though the code is all there, cant figure it out. scratching my head about it. great vid though
@KG_ZZ
@KG_ZZ 6 месяцев назад
I just figured out why this happened to me, in case any1 has same issue it was because when i put my slope in the room i scaled up the slope, nine slice is off and i made 1 big slope thus i wasnt going up the .5 subpixel amount. my guess is that it was because i stretched it out too much making it more like stairs instead of a slope!!
@matthewlawton9241
@matthewlawton9241 7 месяцев назад
You gave me slopes
@NeonWidow
@NeonWidow 5 месяцев назад
So good!
@RyzenShine69
@RyzenShine69 Месяц назад
Dude don't delete this series!
Далее
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32
ТАРАКАН
00:38
Просмотров 1 млн
The Future
4:31
Просмотров 25 тыс.
Simple Lighting System in GameMaker Studio 2
16:18
Просмотров 20 тыс.
Perlin Noise in GameMaker Studio 2
14:01
Просмотров 13 тыс.
choosing a game engine is easy, actually
15:08
Просмотров 500 тыс.
I Made MINECRAFT for THE GAMEBOY
9:16
Просмотров 1 млн
Channel Update Time!
6:40
Просмотров 2,3 тыс.
How Collisions Work in GameMaker Studio 2
21:08
Просмотров 10 тыс.
Катаю тележки  🛒
8:48
Просмотров 567 тыс.