How to Make an RPG in GameMaker Studio 2! (Part 4: Depth and Decor)

  Рет қаралды 97,097

Peyton Burnham

Peyton Burnham

Күн бұрын

This is part 4 of a 6 part series showing you how to make an RPG, good luck!
Support me and these videos on Patreon! / peytonburnham
My Game: peytonburnham....
Discord: / discord
My tweets: / peydinburnham
My twitch: / peydinburnham
If you have any questions, leave a comment or send me a dm on twitter/Discord!

Пікірлер: 91
@Glory2Snowstar
@Glory2Snowstar Жыл бұрын
This tutorial’s incredible for many reasons, but a top favorite of mine has to be hearing lines such as “Now we can make our bed a child of the wall.”
@icey244
@icey244 3 жыл бұрын
Man, thanks so much for these tutorials. I've been slowly but surely going through them, picking up bits and pieces from it that isn't out right mentioned (like better pixel art) and learning how to properly do stuff. I followed a few of the tutorials on the website and a few of the things I tried essentially took what you're doing, but made it way more complicated than it had to be. Slowly but surely something is coming along nicely.
@peytonburnham4316
@peytonburnham4316 3 жыл бұрын
Thats awesome to hear! I'm seriously glad you're sticking with it and learning a bit on your own!
@NoLongerTwee
@NoLongerTwee 3 жыл бұрын
Good luck on your project!
@Ashey814
@Ashey814 3 жыл бұрын
6:06 it's so awesome that I get to learn how to make video games, and have unexpected laughing fits thanks to this tutorial series. Thanks man :}
@DominicRoyce
@DominicRoyce 3 жыл бұрын
Literally the best video series ever! I just started to learn how to make my own games and you are helping me so much! Your videos are really well made as well. Thank you bro
@TabbedOutRat
@TabbedOutRat 11 ай бұрын
Leaving a comment for the algorithm. You the real MVP. Made it this far. Going to keep on going. Thank you for this lesson.
@NoLongerTwee
@NoLongerTwee 3 жыл бұрын
These visuals help me so much, my brain does not work for coding, thank you again.
@dbxblitz5634
@dbxblitz5634 3 жыл бұрын
I’ll place this over a painting of my step pappy I don’t wanna see him any more. His step pappy: and I took that personally.
@tsob5111
@tsob5111 3 жыл бұрын
you could also add the depth code as a part of the wall object so you don't have to type it each time. i imagine there could be some fringe cases where that wouldn't be wanted for a child object of it but another wall object can be made for that anyways
@peytonburnham4316
@peytonburnham4316 3 жыл бұрын
You could! But you probably wouldn’t want to be setting manual depth for all of your invisible wall objects. The way gamemaker handles depth can be a little peculiar when it comes to creating temporary layers and stuff like that so its best not to set the depth for stuff that doesnt need it. That being said you could make a child object of the wall call “obj_visible_wall” or something and have all of your visible stuff be a child of THAT object!
@galaxyglitch144
@galaxyglitch144 Жыл бұрын
​@peytonburnham4316 hey uh I did the depth thing but it turned my bed sprite invisible
@bendriscoll
@bendriscoll 8 ай бұрын
​@@galaxyglitch144 five months without sleep 😢
@galaxyglitch144
@galaxyglitch144 8 ай бұрын
@@bendriscoll help
@mcdaysalive6586
@mcdaysalive6586 2 жыл бұрын
To anyone having issues with the layering, make sure your bbox_bottom is -bbox_bottom and that you have your sprite center is at the bottom for both your character and the object. Seemed to work for me.
@Lackingworth
@Lackingworth Жыл бұрын
:0 I was just about to give up
@delvanoelvin
@delvanoelvin 11 ай бұрын
Remember to replicate the code correctly. I have a trouble with depth before and the problem is I typed depth = bbox_bottom instead of depth = -bbox_bottom
@Isaacbolton23
@Isaacbolton23 Ай бұрын
This comment helped a ton! I was sitting here forever trying to figure out why the heck my dresser was not showing up in game.
@Matt12888
@Matt12888 Жыл бұрын
Cover my "Step Pappy" killed me
@evilbot2099
@evilbot2099 4 ай бұрын
that last trick blew my mind, i know im gonna use it way too much lol
@ninkotop
@ninkotop 2 жыл бұрын
Thankyou so much! just getting into game design and first tutorial that is engaging and entertaining, appreciate what you've done.
@maysonhuang
@maysonhuang 3 ай бұрын
I finnally found my life's purpose after your videos. coding, that is.
@dylanbisson9780
@dylanbisson9780 3 ай бұрын
Its been super fun following along with these videos!
@obenohnebohne
@obenohnebohne 3 жыл бұрын
Wow, this tutorial cooler and cooler. I learned so much. Thanks for sharing your knowledge. I appreciate you.
@unshanks
@unshanks 3 жыл бұрын
Incredibly helpful series. Also, just added Starcross Starcade Special to the ol' wishlist. Looking forward to its release.
@ThatBlenderDude_
@ThatBlenderDude_ 8 ай бұрын
yo these videos are amazing, please can we get a video(s) on a turn-based combat system in this series at some point?
@wrena.561
@wrena.561 Жыл бұрын
hey these videos are really fantastic, thank you so much for going through them using language aimed at beginners and enabling so many more people to try their hand at making a little rpg! if I may offer some concrit, and maybe you've already gotten this down (I haven't watched more recent videos yet!), the music in this one is a little hard on the ears for long term listening! thank you again for making this series!
@Iamprobbacon4Real
@Iamprobbacon4Real 5 ай бұрын
this helps me alot especally this part 7:11 "if it had a bedroom"
@Dirasd.
@Dirasd. Ай бұрын
obrigado, agora eu tenho um norte para me desenvolver, sempre procurei cursos pelo youtube brasileiro, mas é muito escasso, há um ou dois que são realmente bons, fora isso, gostei muito de sua didática
@truehexproof
@truehexproof 2 жыл бұрын
Dude please what is the song in these videos? It's got an asthetic that I can't quite place.
@peytonburnham4316
@peytonburnham4316 2 жыл бұрын
It’s just my own music! Was planned to go in Rose of Starcross! Theres a full OST for the demo of that game on this channel if you want more music!
@truehexproof
@truehexproof 2 жыл бұрын
@@peytonburnham4316 Well, it slaps mate
@peytonburnham4316
@peytonburnham4316 2 жыл бұрын
@@truehexproof thanks!!
@thewizzerdrix8322
@thewizzerdrix8322 3 жыл бұрын
Whenever I add the depth code to my character my character will go under my floor tiles about halfway towards the bottom of the room. They are on separate layers in order. I do not know why this is happening.
@pixelneeryt
@pixelneeryt 3 жыл бұрын
same
@goatkoala573
@goatkoala573 3 жыл бұрын
Sometimes weird thing happen
@anandfell6616
@anandfell6616 3 жыл бұрын
I am making a project and THIS IS SO HELPFUL thank you so much mate :)
@---5228
@---5228 Жыл бұрын
5:00 what if my player goes on the top of up side of bed?
@nitro4787
@nitro4787 3 жыл бұрын
Hey, so I followed your tutorial and I made the dresser and the Tv but I was messing around with the walls and trying to make obj wall in the wall tile so I don’t just walk in the walls. But after placing the walls back to normal, when I played the game the Tv and dresser or any object I placed near the area was invisible. I still bumped into it but it was invisible. Do you have any answers for this?
@Ashey814
@Ashey814 3 жыл бұрын
I'm still a newb at this myself, but if you click on "obj_dresser" or whatever, do you have the "visible" box unchecked? That's really the only solution I can think of, but it's probably something else..
@nitro4787
@nitro4787 3 жыл бұрын
@@Ashey814 Oh that wasn’t the problem but I have managed to figure it out. Thank you for helping!z
@onesingularpog3613
@onesingularpog3613 Жыл бұрын
i'm having the same issue, what did you do to fix it? @@nitro4787 nvm, i also figured it out, just put "bbox_bottom" instead of "-bbox_bottom" in the objects creation code, lol
@michaelcassidy3515
@michaelcassidy3515 3 жыл бұрын
Me: waiting to watch ep 4 to make decor and uses a tile set also the decorations i made were a ttv and a coatrack and a few others but those seemed the most important bc that what your brain apparently went to
@tpoy
@tpoy 3 жыл бұрын
the ending, epic
@iitSnow
@iitSnow 2 ай бұрын
I LOVE THE CUT! OMG IT GOT ME ROFL LOL!
@Neodx2
@Neodx2 2 жыл бұрын
This is a really good tutorial series but I've had to make a stop bcs I stupidly renamed one of my objects and its sprites and it's giving me tons of variable not set errors :)
@DuncanMoua
@DuncanMoua 5 ай бұрын
i really like this tutorial it's a big help thanks !
@R0TTR0TT
@R0TTR0TT 2 жыл бұрын
thank you so so much! i cant be thankful enough for this tutorial.
@sireonion
@sireonion 11 ай бұрын
I accidentally put the parent as the player instead of the wall, so i had three players moving around randomly
@buffectomorph9657
@buffectomorph9657 3 жыл бұрын
Is there a way to do this exact thing but add an object or sprite on top of the bed? I have tried it in the layer system but -bbox_bottom is a tricky beast. It really forces the object to be on top. Say you wanted to put a pillow on top of the bed using code here. Can you or anyone explain how that could be done?
@peytonburnham4316
@peytonburnham4316 3 жыл бұрын
For the static objects you could set it to -bbox_top if you wanted. Or just in general you dont necessarily have to set each object the same way, you can pick any depth you want! For example, if your bed is going to be against the wall and the player can never walk behind it, then it doesnt matter what the bed’s depth is, just as long as your backgrounds and tiles dont cover it up!
@buffectomorph9657
@buffectomorph9657 3 жыл бұрын
@@peytonburnham4316 I've tried it with depths and bbox_top, many different combinations. I'm afraid my problem is a little more complex than a bed against a wall. I'll try to make it short. The bbox trick is nice because it moves something above or below depending on the y-coordinate, right. My problem is I have a layer I need to go above the -bbox_bottom. So I have trees using bbox and a player using bbox to make the trees and the player swap depths as they pass. But on the edge of the screen I am using a black fog that I cannot get to go a depth above the trees. This is because the trees are long and they're bbox y coordinate is calculated at their base. And it needs to be this way for the depth effect they have with the player. Thanks for your response! If you have any more insight I'm happy to receive it.
@peytonburnham4316
@peytonburnham4316 3 жыл бұрын
Buff Ectomorph sounds like you just need to set the depth really low in your fog object! Try just setting your depth to something like -9999
@buffectomorph9657
@buffectomorph9657 3 жыл бұрын
@@peytonburnham4316 My dude! lol I tried this before but apparently that extra 9 did it! Doesn't work at - 9999 but at -99999 it finally gets on top of everything. Liked, subbed, ringing the bell. Thanks again!
@peytonburnham4316
@peytonburnham4316 3 жыл бұрын
Buff Ectomorph haha thanks!! Im glad its working for you now too!
@banankey2
@banankey2 2 жыл бұрын
Thank you for this!!
@jakehopper5204
@jakehopper5204 3 жыл бұрын
Do you know how to keep a tile layer on top so that the player is never higher than it with his depth equation? I'm trying to make it so the player can go partially behind the walls to create a depth but don't want to make an object for every tile.
@peytonburnham4316
@peytonburnham4316 3 жыл бұрын
Sure! Just set the tile layer depth to something really low like -9999!
@sscaide
@sscaide 2 жыл бұрын
For some reason, when I add the object depth sorting to my player as shown in this video, it causes my game to start completely ignoring tile depth sorting. Without that single line of code, my player can walk behind certain tiles, because they are on a higher layer. With it, the game just starts... not doing that, for no apparent reason. Any clue why this is, or how to fix it?
@constant938
@constant938 2 жыл бұрын
the depth isn't working for me at all, no matter what I apply (depth = -bbox_bottom;) to, it is always put below every other layer, even the background. I don't know what is causing this but it isn't working.
@yiqq33
@yiqq33 10 ай бұрын
I have a problem, after I program the depth = bbox bottom, all the objects that use that command they become invisible, if anyone knows how to fix it please help me
@_slemm
@_slemm 9 ай бұрын
you might have mispelled it. make sure you put "-" before bbox_bottom, that might be the issue!
@yiqq33
@yiqq33 9 ай бұрын
@@_slemm i solved the problem, thank you
@roi-77
@roi-77 Жыл бұрын
I don't know what I'm doing wrong or if there's a bug or something, but whenever i make an object (like a chair) and run a test it shows up as a red checkerboard. I have found absolutely nothing about it online.
@shadedpiano
@shadedpiano 3 жыл бұрын
thanks so much I'm gonna get dreams of walls giving birth to beds LMAO
@floweyfangirl69420
@floweyfangirl69420 Жыл бұрын
3:00 personal timestamp
@keyboardjammer405
@keyboardjammer405 3 жыл бұрын
I have a question re. the the -bbox_bottom depth code if anyone can help. Is there any way to make it so this rule only applies to objects with a specific parent? I'm trying to implement some tiles that the player can go behind (to simulate walking out of sight through a door) and the current depth code is forcing the player in front of them even though they're on a higher layer level. Any help much appreciated!
@Smol_LOL
@Smol_LOL 6 ай бұрын
Maybe I could call it home... IF IT HAD A BEDROOM!
@DJaycerOfficial
@DJaycerOfficial Жыл бұрын
This video is very helpful. But there is one issue I run into which idk if its just because of one thing or another but the sprites I load in while running the game are blurry. You can still tell what they are but they're just unsatisfyingly blurry. Is there any way to fix this or is it just something that i'll have to deal with until the export of the game?
@victorelpro2135
@victorelpro2135 10 ай бұрын
Idk if you already discovered it, but in Game maker Studio 1 you can go to the global game settings and desactivate the option called "Interpolate colors between pixels" in the Windows tab, and then graphics, but maybe is different in Game maker Studio 2, anyway, Yes, there is a way to fix that
@DJaycerOfficial
@DJaycerOfficial 10 ай бұрын
@@victorelpro2135 I have actually. Recently in my game I’ve just created a way to dynamically create element effects so I don’t have to write out a long switch statement. I’ve also just overall made my life much easier when it comes to this sort of monotonous stuff. The only thing I don’t think I can streamline is the room creation process. Not unless I use randomization which I don’t intend on using.
@victorelpro2135
@victorelpro2135 10 ай бұрын
@@DJaycerOfficial oh wow, that's really cool! I wish you good luck in your game man, have a nice day, and i'm glad that you discovered how to fix your initial problem (sorry for my bad english btw)
@JohnKcyd
@JohnKcyd Жыл бұрын
how do you come up with big the décor is? I have made a to big of a canvas and if i make it smaller it pixelized my hard work.
@HappySeedling_
@HappySeedling_ Жыл бұрын
i still have like 2 questions about movement is it possible to make the game controller friendly and how do you fix the diagonal movement because moving in your normal directions only moves you by speed but as soon as you move diagonally it starts moving at speed * 2
@Goomhomebrew
@Goomhomebrew 2 жыл бұрын
can you please make kit for the objects as i really hate making them:(
@ne0arrow
@ne0arrow 9 ай бұрын
"I don't want to see my step papi anymore..."
@BùiPhúchuy
@BùiPhúchuy 4 ай бұрын
anh cắt đoạn nên có một số phần tôi ko hiểu
@CipherXV
@CipherXV Ай бұрын
Man what song you got playing in these vids
@ironfist3265
@ironfist3265 Жыл бұрын
One of the props in my project was blurry, any way to fix this? edit: nvm the object just wasn't scaled properly
@madd007x
@madd007x 19 күн бұрын
mamma mia. i love you
@WFStanton
@WFStanton Жыл бұрын
My character keeps showing up above everything. What am I doing wrong?
@VictorsTing
@VictorsTing 2 жыл бұрын
does anybody know if there is a "redo" button in gamemaker?
@yadooomi
@yadooomi 3 ай бұрын
Ctrl+Shift+Z
@cooldudeinc
@cooldudeinc Жыл бұрын
My character is blurry, and I don’t know how to fix it.
@YanaDerre
@YanaDerre Ай бұрын
help why is my bed invisible
@Sansirusp
@Sansirusp Жыл бұрын
1:30
@lou-pw6zr
@lou-pw6zr 2 жыл бұрын
I wish its get work
@miah-sempai
@miah-sempai 10 ай бұрын
1:14
@artoriasalter482
@artoriasalter482 5 ай бұрын
he said "make whatever you want" and i proceeded to get lost for 12 hours making various pixel art assets. send help. Directions unclear. Dick got stuck in obj_stove
@Dylan-my8dt
@Dylan-my8dt Жыл бұрын
EVERYONE! somethng that helped me was changing the words bbox_bottom to bbox_top. hope this helps
@actually_a_wyrm
@actually_a_wyrm 20 күн бұрын
HELP -bbox_bottom WONT WORK???
How to Make an RPG in GameMaker Studio 2! (Part 5: Room Transitions)
30:11
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
5 Tips for Making Video Game Melodies || Shady Cicada
11:19
Shady Cicada
Рет қаралды 304 М.
A new way to generate worlds (stitched WFC)
10:51
Watt
Рет қаралды 560 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,4 МЛН
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1,1 МЛН
Beginner GameDev Mistakes - Ep 1
6:40
Sara Spalding
Рет қаралды 167 М.
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 5 МЛН
How to Make an RPG in GameMaker Studio 2! (Part 2: Player Animation)
20:51
What Canvas Size Should you use for Pixel Art? (Pixel Art Tutorial)
7:28
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН