How to make an UNDERTALE/DELTARUNE Fangame in Gamemaker Studio 2 - Part 1
HTML-код
- Опубликовано: 31 июл 2023
- Hi, I'm back! I'm redoing the series as I am more experienced with Gamemaker now, and I lost the project files from the old series.
This one will be better though and include Dialogue boxes and Battle Systems!
#undertale #fangame #tutorial #deltarune #gamemaker #gamemakerstudio2
finally, a tutorial that isn't outdated, thank you so much for this!
youre welcome! i hope you enjoy!
@@kkibi hEY can we have project ressources that you got it might be helpful
Forget i found them
mf even showed how to install game maker
This may be one of the best tutorials for Game Maker out there. I am new to the game engine, and this not only taught me how to make Undertale games, but parts of games as a whole. I appreciate this tutorial very much, and you just earned a sub! :)
Yooo he's back and with an updated Undertale Gamemaker tutorial!!
WHAT YOU'RE BACK?!
I'VE BEEN WAITING FOR THIS AAAAAAA
bro you're a genius. you code so much stuff in so little lines. that's so amasing
OHMYGOD LEGEND IS BACK?!
Tysm for this!!! Words cannot describe how helpful this was to create my fangame. Thank you so much.
Good job!!!! Keep up the great work!🎉
Thanks!!
Thanks dude. You have found a place in the credits 🙂
From the bottom of my heart, Thank you, so so damn much! This really helped me, and finally I can be able to work with the engine properly to create something useful! Have a good one!!
this is an awesome tutorial!!!! you are master bro and you are underrated as hell!
unironically really really helpful, thank you kind kibi person :)
I was only nine minutes in when I subscribed… and I was surprised to see you had such a low sub count! You deserve way more subscribers!
haha thanks! i hope you enjoy the series
WELCOME BACK
WAIT A MOMENT!! I can't believe! Its you! In the past, i watch your videos for my undertale projects, its so good see you back. And sorry if my english its bad, I'm from Brazil.
Thanks!
Hey man i was using shaun spaldings tutorials but i found them too confusing, but this is nice and simple and it makes sense! Thanks so much, and keep it up!
One thing to address/fix is when you're against a wall you can't turn directions fully unless you can also move in the same input (ex kris is touching wall facing up or down but cant turn left or right)
yeah, i'll try fixing it in a future episode
You can use the color remove tool and select all frames to delete all of the pink stuff faster
A legend has returned
The legend is back?!
HAHAH THANKS!!
Thanks You are the best!
I still learning how to use this game engine.
Here, i subbed!
thank you!!
@@kkibi You’re welcome 😎
Thank you, this will help me soooooo much in making my fangame
HE IS BACK!!!!!!
omg I am subbing this is so awesome
finally......I am your fan in Korea
dude this was so helpful tysm
For those of you who are having the sprite face up when you are heading left and down when going up, here's the solution.
So the code you have is most likely correct, the "problem" is what your default sprite is. So you know how a few minutes into the video you would set the sprite of the player object to sPlayerDown? what you want to do is change it to sPlayerLeft, run it, press left (to see if it works) then close it, and change the default to sPlayerUp, run it, press up, and finally you can change it back to down (the original). Its really stupid how that works and was really frustrating to fix. Hopefully this helps.
if you have problem to make oPlayer walk in 4 directions:
Events > Create
//Atributs
hspd = 0;
vspd = 0;
grav = 0.5;
walkspd = 4;
Events > Step
// Control
press_right = keyboard_check(vk_right);
press_left = keyboard_check(vk_left);
press_up = keyboard_check (vk_up);
press_down = keyboard_check (vk_down);
// Moves
var xmove = press_right - press_left;
var ymove = press_down - press_up;
vspd = ymove * walkspd;
hspd = xmove * walkspd;
x = x + hspd;
y = y + vspd;
YOU SAVED ME THANK YOU SO MUCH
this deserves a sub
Thank you so much for this tutorial
Fantastic video dude, finally someone that explain things clearly. Also mind helping me? I'm trying the collision box but they don't collide 😅 so i dunno why it happens, i followed everything you did, but i'm using sprites of my own so i dunno if that a problem or what.
Hey, thanks for tutorial but I need some help. My character has trail. And when I stop the character, its stopping on the last animation frame. (not bot)
a small comment on the beginning where you're importing the sprite through the sprite sheet, you can acrually just use the "remove color" tool as a significantly quicker way of removing one color from a sprite meaning you'd only have to click once per sprite frame instead of as many times as it takes to remove all of the color from an image
i love this tut thank you
yay i'm glad you like it
For Frisk, width 19, height 30, and horizontal separation 4. (when Using the spritesheet)
I have a problem... The sprite does not turn into sPlayerDown when i press the down arrow but it moves down with the previous sprite and animates that.
Can I get some advice?, whenever I try to press up or down it just goes left or right, the keys are messed up but I followed as the tutorial said
Edit: fixed it
It was just that I set the
y += yspd
to
x += yspd
Would this work for Gamemaker LTS? Im planning on working on a deltarune fangame for an au Im working on based on Undertale Yellow but Im not sure if that version applies to this tutorial.
how big does a canvas has to be in order to make stuff like character and background sprites?
Can anyone help me? when i press right my player goes down and right and when i press left my player goes both left and up, also the up and down keys don't do anything
Guys im using frisk but the camera for some reason wont follow them maybe i should just use kris but if you can reply and help dat would be great
omggg! thank youuuuuuuuu!
can i do this like bad time trio that when you open the game it have a small room and the main boss like no story and just the like "final boss" i hipe you know what i mean
Hey, I did everything but for some reason, when i move up, it stays on the down animation, what can i do to fix this?
thanks man i can now make kris' krisful journey
I really want to understand how the UNDERTALE intro story was made and the image scrolling, fade in & out, placeholder, etc
Okay! I'll get into that eventually. New episode should come out today or tomorrow.
Thanks! You are the best (not bot)
thank you! thanks for the not bot lol
What if i wanted the character to jump and the gamr to have pits
Absolutly love this guy
! he is just wayyyy to nervous (not a bad thing its just like im just saying)
can barely keep focus
Hello i followed all of your code and everything works fine expect when i move my player character and it goes next to the wall object that it stops to move completely and cant move anymore.How can i fix this?I followed everything along.
Hey @kibi Whenever I run into a wall my character freezes because xspd and yspd = 0 but I can't move away from the wall, any ideas to fix this?
I had the same problem, i just fixed it, try:
if place_meeting(y, x+xspd, oWall){
xspd = 0;
}
if place_meeting(x, y+yspd, oWall){
yspd = 0;
}
it worked for me!!
Did they get rid of the image button? It’s not there.
I love you, Tysm
Hello, does anyone know why it won't let me move my character? I followed all the instructions, but it only stays in one place.
I'm completely new to the engine and I'm already having my first problem evertime I add changes to a different sprite the first sprite ends up copying the different sprite I've tried everything but nothing works is there any way you can help me?
Can anyone help my sprite editor dont work so I cant drag the sprite strip around I can on,y go up and down not left and right
Edit:I was wrong it is all drag things
Edit 2:I found out how I can use alt!
Edit 3:alt stopped working
I have a problem where the left sprite wont show
SOMEONE HELP WHENEVER I PRESS THE DOWN ARROW KEY AND GO AGAINST A WALL I CAN'T GO UP
its sad how i managed to mess up that 😅, i took so long to figure out that i had put the sprite on the room instead of the object, i was going insane
thanks fo this tutorial
It doesn’t work at this bit it just says I have errors when I have 0 errors
i actually really like your voice 😭
How do I implement the Frisk dance?
i get this warning instance variable left_key declared outside of create event, declare with 'var" or move to create event
Sounds like you created the left_key variable in your Step Event rather than in your Create event?
I messed up one word but I got it fixed... also this is vary useful
i'm glad you got it fixed!
AAAAAAAAYOOOOOOOOOOOOOOOO new sub
bruh you helped me so much
PLEASE CAN anyone help me. Because i literally just got to like 5 minutes in and instantly feel like giving up. In the Import Strip Image part i put the Frisk sprites. And i was doing everything easily up until i realized i couldnt scroll up, left, down or right of the image. I could only zoom. When i holded click and tried to swipe to the sprites i need it just put the white box and move it around with my cursor instead of scrolling. I tried left clicking too and it didnt work, i even tried right and left clicking but it still didnt work and i dont even know how to scroll?. Like damn, If this comment gets no replies helping me im probably never gonna have a chance to make an undertale fangame as there isnt even any tutorials of how to get the white box to stop appearing on my cursor instead of scrolling in a direction
How do you do this on a newer version
If anyone could help it would be nice
so i followed the tutorial perfectly, but the character wont move at all whenever i press the keys
I KNOW RIGHT?!
does it work with game maker 1?
Is there a way to upload/copy undertale files into gamemaker so I don't have to start from scratch and have the regular game to work on?
that would be pirating. It is illegal to do that, but I think you can a copy a few things since Toby allows fangames
hey I'm getting errors I need help
this doesnt work gamemaker crashes when i open the game
mine won't work is the script outdated?
What did you do at 6:10?
I love you tutorial i rn in part 4. But i need help with walls they not Exact like in tutorial
The part between 6:09 and 6:11 how does he align the thing up so perfectly?
(Heads up, I'm doing this on a laptop so i don't know what button i should be pressing.)
Idk, but do you also have a problem where your character can only move up?
@@zuperkirbi8378 nope, i think you might have miss typed y instead of an x in one of them
Make Menu system (that shows if we press C)
hey I dont know if you are still responding to comments but for some reason when I start up the project and I walk off screen everything begins to clone itsself as if it were a pen, It creats its sprite over and over and leaves a trail of itself, if you could help it would be great!
(love your vids btw! ^.^)
Did you set your camera view right?
Remember that you need to set up the camera and viewport(I think)
@@Flowey_the_Flower.
(thats a wonderful idea!)
checked everything, found what was wrong, and bam! fixed it!
thanks for the help!
hey all of a sudden when i got to doing the wall thing, right after placing my walls, pressing play then exiting i can no longer edit the walls and my sprite phases through the wall as well :( how do i fix this its really frustrating
edit: i figured out how to get rid of the walls but im still having issues phasing through it and my camera isnt following my sprite, i followed everything exactly as it was in the video
put the collision statement before the x += xspd statement, that should do it i think. also if your room isn't big enough the camera won't follow you
So for some reason it isn't working for me. When i try to set the key pressed as variables it says "GM2016 - Instance variable 'up_key' declared outside of create event, delvare with 'var' or move to create event"
It works now, but line 13 apparently isn't working because variable xspd "wasn't declared"
Same, how did you fix it?
For the movement system, is there anyway for it to be WASD instead of the arrow keys?
Don't fully trust me(I'm a noob too),but I think you can replace the "vk_right" with (ord("D")),for example
no need, just when you boot up the game press "Fn + w"
it doesn't work, please help me
Please help me i typed everything right but the project just wont start
ME TOO
for some reason everytime I try to move the sprite images, they it stays the same size, what do I do?
Hold "Alt" and move the mouse, this is from what I know on Windows atleast
i dont know if anyone can help but my kris sprite is blurry when i launch the game, does anyone know what could be causing this issue
what type of blurry? does it look distorted, or does it look like the colors are combining into each other. if it looks the the former, then maybe the window size is too small. All you have to do is just increase it a bit. If it's the latter, are you sure you download the correct sprite from the spriter's resource?
@@kkibi well im sure i got the same one as you used in the video but the colours are definetly combining. also thankyou for helping
Hello! thank you so much for this tutorial. I'm currently having an issue tho: everything is working fine though when I go to load the prototype of the game when Kris walk their up animation is nowhere to found and is instead replaced with the down animation. I belive this could be an error done in //Animation so tell me if I didi this correctly pls:
//Animate
if xspd > 0 {
sprite_index = sPlayer_right_0;
} else if xspd < 0 {
sprite_index = sPlayer_left_0;
} else if yspd > 0 {
sprite_index = sPlayer_down_0;
} else if yspd < 0 {
sprite_index = sPlayer_up_0;
}
btw I name the player diffrent than you did in the video but don't worry about that.
EDIT: omfg I'm so dumb I forgot to load in the frames for the upper animation 😭. Sorry for the inconvinience 😓.
haha yeah i was gonna say that your code looks great
@@kkibi Thank you, I'm currently following the 3rd tutorial. when I finish the series I'm gonna make my own fangame by myselft :D
@@jarshwah_fjsalg I don't know if I it's the same issue I'm having but the way I fixed it is by going to the sPlayer_up sprite and loading the actusl 4 frame walk animation using the sprites reasourcer sheet provided in the video. Basicay just so the same tjung the crwator did in the video for the otjer 3 walk cycles.
Yea I'm a beginner just like you man I have no idea what I'm doing , maybe ask kibi.
the wall works well on the sides, but on the up and down sides, it doesn't work, i can noclip through it, any ideas on how to fix? thx
put the collision statement before the x += xspd statement, that should do it i think
my sprite wont work at all like it has the sprites and stuff but if I press something nothing happens nvm but when it loads its fov is goofy
fov? this is 2d not 3d. fov shouldn't be there?
@@kkibi i mean like the border and view is goofy
@@CharaDreemurrGamer make sure the room size isn't smaller than the viewport size
finally some thing that broke me
WHERE THE CODE IN DESCRITION
help... when i press left it changes to the up sprite when i press up it changes to the down sprite right and down are normal... the sprites are named correctly and i made everything perfect here is my step event
down_key = keyboard_check(vk_down)
left_key = keyboard_check(vk_left);
right_key = keyboard_check(vk_right);
up_key = keyboard_check(vk_up);
//Movement
xspd = (right_key - left_key) * move_spd;
yspd = (down_key - up_key) * move_spd;
//Collision
if place_meeting (x+xspd, y, oWall){
xspd = 0;
}
if place_meeting (x, y+yspd, oWall){
yspd = 0;
}
//Animate
if xspd > 0 {
sprite_index = sPlayerRight;
} else if xspd < 0 {
sprite_index = sPlayerLeft;
} else if yspd > 0 {
sprite_index = sPlayerDown;
} else if yspd < 0 {
sprite_index = sPlayerUp;
}
if(xspd != 0 or yspd != 0){
image_speed = 1;
} else {
image_speed = 0;
image_index = 0;
}
x += xspd;
y += yspd;
everything looks fine, what does your create event look like?
@@kkibi my create event is
xspd = 0;
yspd = 0;
move_spd = 1.5;
@@seif_mohamed8786 I struggled with this for hours, but I finally found out the solution.
So the code you have is all correct, the "problem" is what your default sprite is. So you know how a few minutes into the video you would set the sprite of the player object to sPlayerDown? what you want to do is change it to left, run it, press left (to see if it works) then close it, and change the default to up, run it, press up, and finally you can change it back to down (the original). Its really stupid how that works and was really frustrating. Hopefully this helps.
I can only do visual 😢
When I go in contact with the walls vertically it works fine, but when I go horizontally colliding onto a wall, my character gets stuck and doesn't move. I don't know what to do
Nevermind sorry. It was something to do with the hitboxes that made them glitch.
@@TorridC HOW DID YOU FIX THE COLLISION I'M HELPLESS.
you have to make the sprite collision thing the same size as everythign else (animation included). And make sure it isnt shifted to the sides or up or down. Just make the colision the whole sprite to make it easy. @@Oblitzer
@@TorridC Bro you are a LIFESAVER THANK YOU SO MUCH.
3 years later...
They grow up so fast
Where I left off: 4:43
can i please get the player step code i think i did something wrong,left plays the up animation and up plays down
i fixed it nvm
@@fireyoriginal same error, howd you fixed it?
@@holaeddie8752 just reupload the sprites,itll work
6:09 how do i make it change size
just found out
I hope you reach 1k soon! 3 subs off!!