Тёмный

GameMaker Studio 2 - How To Transition Rooms Beginner Tutorial 

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

Changing or transitioning between rooms is a necessary thing to do once your game starts growing. Here I will show you an easy and elegant way to do just that!
Social:
- Connect with me on Twitter @Aaron_LLTT: / aaron_lltt
- Become a valued Patron and receive more exclusive content @: / 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.buzzsp...
My Exclusive Courses💻🎮:
Bundle Course Package & More Here! www.letslearnt...
Starting Project Here ----- drive.google.c...
Finished Project Here ---- drive.google.c...

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

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 426   
@hyprincess3376
@hyprincess3376 7 месяцев назад
This tutorial was super helpful, but my player isn’t going to the X and Y points I put in the creation code when they warp, they just change Roos and stay in the same spot
@bobsjobisfob
@bobsjobisfob 5 лет назад
oh my god i had no idea you could make the player character persistent... im so glad there was an easy way to do this, i was really racking my brain trying to figure out an easy way to go back to previous levels while being teleported next to the door
@slickygreasegames
@slickygreasegames 3 года назад
I just tried out this tutorial. Very simple and straight to the point. Loved how you explained every detail, this really helped on my project. :)
@mathewnyonyony7855
@mathewnyonyony7855 Год назад
What a well explained tutorial! I took my time and watched it until the end. I have started to develop my game by following these wonderful steps and am really motivated and enjoying my progress as well. Kindly I would love to watch more tutorials and please continue to provide more for many to benefits. Thank you so much cheers buddy.
@frostwolf5499
@frostwolf5499 Год назад
muchas gracias por este tutorial, justamente necesitaba un objeto que llevara al jugador a otro nivel, simple, funcional y efectivo, GRACIAS :D
@meganbriskar7170
@meganbriskar7170 Месяц назад
That worked perfectly fine well time to start coding for the other room now
@misorashi3368
@misorashi3368 5 лет назад
My boy has the League of Legends client in the background lmao what a legend
@tymario8563
@tymario8563 3 года назад
also epic games
@johnjohnson2516
@johnjohnson2516 Год назад
im having an issue .. ive followed what was shown and so far everything works, except for the coordinates the problem im having is that my character can teleport to the next room, but they will not teleport to the coordinates meant for it to spawn at, but rather spawn in the exact coordinates as it came in. im using the newest version of game maker i believe, and im still new at learning how the engine works, any help works!
@LetsLearnThisTogether
@LetsLearnThisTogether Год назад
You must stop the ability to move once you begin to warp, otherwise your player will execute their last movement code, something like x += 5, and it will warp back to its previous x. At least that’s probably what it is.
@johnjohnson2516
@johnjohnson2516 Год назад
2 things 1: THANK YOU! for actually responding to me about the problem! means a lot to me, and 2: now that i think about that, that actually does make sense, ill look into it more and see if theres something i could write up to pause the player's input for a sec while warping, once again thank you!
@johnjohnson2516
@johnjohnson2516 Год назад
i think i figured it out lol turns out if your player is set to solid from the little tick Box, it breaks the whole process, but if you don't tick solid, it works perfectly fine! once again thank you so much!
@SoulStoneGames
@SoulStoneGames Год назад
@@johnjohnson2516 thank god for this comment i was going crazy thinking i mistyped something xD
@MaknaEXMachina
@MaknaEXMachina 4 года назад
Dude, thanks for this video. This is a really cool way to do it, I'll use this tomorrow.
@Omar-vp1cf
@Omar-vp1cf 6 лет назад
Dude awesome video! I’m working on a jam right now and this video answered all my questions!
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
Nice! Best of luck on your jam.
@lucyvasser2605
@lucyvasser2605 2 месяца назад
i followed this exactly but im having this issue where it wont change the x and y value of the player object at all, only switching to the next room with no change in the player objects location
@VibingMonkee
@VibingMonkee 13 дней назад
I had the same problem and apparently it doesn't teleport the player if solid is on
@ArtsieFrog
@ArtsieFrog Год назад
Thank you. I want to make a Zelda clone and I was stressing about this door to room thing. Wish Zelda classic was more robust.
@theprehistoricnerd
@theprehistoricnerd 4 месяца назад
Hey! great tutorial andf it working for me! but im having an issue where when i hit the warp it brings me to the next room but the target x and target y variables dont work.could you help?
@favor1791
@favor1791 2 года назад
Is it possible to place the warp off screen so when the player walks off screen, that’s when they appear in the next hall way?
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
Yeah. Objects off screen will still run their code and detect collisions.
@favor1791
@favor1791 2 года назад
@@LetsLearnThisTogether thanks!
@ducked-head5797
@ducked-head5797 4 года назад
ı made my character persisdent when I get ın a room it works with no pronlem but when ı exit ı disappear
@Saioren
@Saioren 4 года назад
Hey so my character wont appear in the other room unless I make a second character in room 2 but then i cant go back and forth into the rooms freely without my character glitching into the ground. sup with that
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Is your character set to be persistent? If not, they won’t move between rooms.
@DarkFrostMoe
@DarkFrostMoe 5 лет назад
Thank you very much, you helped me in a problem where I needed help, very good video bro, keep it up.
@charlielol2580
@charlielol2580 5 лет назад
I have literally copy and pasted the variable names from my create event to my player collision event and it still says in my create event that the variables are only being referenced once. Please help.
@finnradner3293
@finnradner3293 4 года назад
Yeah, I'm having the same issue. I'll reply if I figure out the fix. Do u have any ideas?
@LargePotatooooo
@LargePotatooooo 3 месяца назад
this is still great even 7 full years later
@Piriper267
@Piriper267 4 месяца назад
I used this tutorial in two of my projects and it cames out that it works but targetX and targetY are working strange and I don't know how to fix it; the player will be teleported in total different side of the room from the x and y I've setted. I also tried to cange the X and The Y slowly to reach a position that would work for me but it doesn't move
@VibingMonkee
@VibingMonkee 13 дней назад
I had the same problem and apparently it doesn't teleport the player if solid is on
@taavitimm9045
@taavitimm9045 10 месяцев назад
this was helpful, thank you. I was trying to figure this out on my own and it was quite a mess. I had like 10 different door objects and for each new door i tried to make a new door object... but it didn't work that well. This is better.
@leciojoaoorsiribeiro4135
@leciojoaoorsiribeiro4135 4 года назад
Man, you just saved my night
@yoapolloboy
@yoapolloboy 5 лет назад
i know this video is a little bit old but, i have a problem when i put my player in persistent mode, i cant use restart_room(); how i can fix that ? i'm making a platform game so i need the restart room for when the player falls in the void he can go back in the start of the room
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
Why can't you use restart room? What happens? What doesn't happen?
@yoapolloboy
@yoapolloboy 5 лет назад
@@LetsLearnThisTogether my player just falls and stay falling, he don't restart the room, i'm using a object with collision with restart room, but when i use Persistent in player my character stay falling but when i'm not using, the room resets normally
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
I suppose that makes sense. Because it's persistent it wouldn't change with that function. You'll need to manually reset the player then, by moving their x and y to the start location at the same time you call room_restart.
@siriuslemaitre4833
@siriuslemaitre4833 2 года назад
I have a weird problem : when I write code in the instance creation code, I cant save it, so the variables targetX and targetY arent referenced
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
Not being able to save sounds like a bug. Try closing and reopening GameMaker. If that doesn’t work, try saving your project after doing anything else. If that still fails uninstall and reinstall.
@escarabajomayih
@escarabajomayih 5 лет назад
thank you, easy to understand, speedy, you are the best. gracias, fácil, rápido. eres el mejor, es lo que uno busca, tutoriales rápidos y fáciles de entender.
@rexwesth860
@rexwesth860 3 года назад
When i walk into the next room i spawn in the wrong side. Can you please help :)
@Pazmaz
@Pazmaz 3 года назад
I'm having the same problem, have you found a solution?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
My suggestion is to use the debugger when you change rooms and follow your code. Something is moving you, but I can’t say what without seeing your project.
@dircreate46
@dircreate46 2 года назад
"I am not an artist" made me laugh weirdly enough, really helpful tutorial though 👍
@NJ4KTV
@NJ4KTV 7 лет назад
The tutorial worked... but for some reason exactly the same is not working in my main game. Can I send you the file to look at?
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+NJ4K Sure. Email it to me at beyondusgames@gmail.com. Export it from within the game and send it my way
@NJ4KTV
@NJ4KTV 7 лет назад
Thankyou
@phandoumas2921
@phandoumas2921 2 месяца назад
i know its a bit old... but whe ni try to warp to second room, it dont takes tagetx and Y position, im getting teleportete somewhere "outside"
@leongashwig
@leongashwig 5 лет назад
I don't know if it's supposed to work in the old versions of GM, but even though I did everything you said, my character just doesn't seem to collide with the warp. It just goes through it like it's background.
@leongashwig
@leongashwig 5 лет назад
Well, they do work now, but my character's fixed rotation turns off
@fatyw7733
@fatyw7733 4 года назад
thank you very much but when i go into the warp and i go to the other room my screen gets pressed can you help me with this??
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Pressed? Like your screen distorts? That’s probably because you’ve got a camera and views in your rooms, and they’re not the same dimensions. When you use a camera, you’ve got to make sure your dimensions are in line with each other.
@epithayadarcithia2117
@epithayadarcithia2117 4 года назад
could you make a tutorial for how to put a cooldown on the warps? that sounds great
@whatscookinbeats
@whatscookinbeats 3 года назад
Just use an alarm, set the alarm value and call it when colliding.
@riviloo
@riviloo Год назад
my player gets stuck when walking in the warp and doesnt warp? im so confused
@LetsLearnThisTogether
@LetsLearnThisTogether Год назад
Check out the updated version. I try to address all the possible mistakes you can make.
@juliannnnnn
@juliannnnnn 6 лет назад
Hey, i have a few issues; For one, the rooms merge, but one turns into a sort of picture, while the other the player can interact with. Another is that the player is cloned and leaves a trail of itself behind itself, sort of like a card when you win solitaire. It'd be great to know where i went wrong, thanks!
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
That is odd... Can you export your project and email it to me at beyondusgames@gmail.com? I'll look at it.
@Zazour48km
@Zazour48km 2 года назад
@@LetsLearnThisTogether hello can you please explain I have the same issue
@flankempire5572
@flankempire5572 Год назад
For the second problem it is possible the background is missing
@crashedbruh
@crashedbruh 5 лет назад
man that was a really helpful video. one thing though. u do not need two separate sprites for the left or right. i had actually faced this problem first. but after some trial and error,i wrote a code which successfully flipped my character just like yours does without two sprites.😃
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
It is true, it's not necessary if the Sprite looks the same left and right, like here. However, if the character had a weapon on one side or something else was different on one side, you would want different sprites for left and right.
@xcalicojack
@xcalicojack 5 месяцев назад
i dont think this code works in the newer versions of GML. i copied everything exaclty and it keeps saying the variables are unset and trying to walking into the warp tile just crashes the game.
@tiagoorevoltado2273
@tiagoorevoltado2273 5 лет назад
hi when I write var targetRoom, targetX, targetY; in the war, this menssage happending variable target Y reference only reference once with a this signal (!) what i do?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
That means you've got it spelled differently somehow and aren't referencing it more than one time, which you probably need to be doing. So double check your spelling on all of it.
@cachuchoaudaz1390
@cachuchoaudaz1390 4 года назад
@@LetsLearnThisTogether it does not work
@orachok
@orachok 2 года назад
IT'S SO HELPFUL OMG THANK YOU
@gilgamesh4795
@gilgamesh4795 4 года назад
This video helped me a lot, Thanks.
@therealmrsketch
@therealmrsketch 8 месяцев назад
Question, How would I keep the player's initial position before the teleportation? I am using the teleporter as a barrier which leads to the next room, and I want to keep some position depending on if the barrier is on the x axis or the y axis
@LiamADHD
@LiamADHD 2 года назад
Hello, I have done this twice and typed word for word, ive also used other ways to port into the room but EVERYTIME he ports to the same place, can you help? nothing will override the location he gets ported too everything, and i never set anything up. is it a room setting? he is appearing the same place he is in the first room, so its like he is only switching rooms and not porting, thanks
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
If you export your project and email it to me, or share the link with me, I’ll take a look. aaron@letslearnthistogether.com
@kyxor7618
@kyxor7618 3 года назад
It doesn't work in july of 2021, i go to warp, and it takes me at the exact same coordinated i am, just at the next room. How can i fix it?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
The code for GML hasn’t changed, so it will still work now. Double check where you’re going, and that you’re not landing on the other warp to return yourself to the first room
@kyxor7618
@kyxor7618 3 года назад
@@LetsLearnThisTogether I manage to make it work by unchecking the ''solid'' mark on my player sprite object. Thanks for the reply tho! I'll make sure to check more of your videos since you reply to the videos no matter how old they are! ^.^
@netowgtz
@netowgtz 5 лет назад
as a beginner, i can tell your videos are very helpful! mayb i have an idea for a video perhaps when u run out of ideas lol, im trying to make a popup menu that displays other menus in it (like saving or items, etc.) but i have problems controlling their indexs when all of them are running, just a derp idea lol, peace
@auroracalagomez
@auroracalagomez 4 месяца назад
I have a problem with the sound when my character touchs the object
@Jbarrel1
@Jbarrel1 2 года назад
i have an issue where it just teleports me to like a black and white version of the start of the level
@sadiejoh.6202
@sadiejoh.6202 4 года назад
Thank you so much for your tutorials. Quick question though, my first warp works completely smooth and fine, but when she tries to go back, she cant walk up to the warp, it's like something is blocking her just a block or so away from the warp
@sadiejoh.6202
@sadiejoh.6202 4 года назад
Never mind I figured out. Turned out my warp cords were off by a few points. Whoopsies.
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Hmm, odd. Do you have some collision checking in there somewhere? If you can access the first warp, then it is probably something else in your game preventing you from reaching the second.
@midwestvalues
@midwestvalues 3 года назад
So, in trying this I'm able to get the player to swap rooms, however if I set the player Object to persistent, it switches rooms, but doesn't change the X Y Coords, leaving the obj where the tp was in the prior room. However if I turn player persistence off, it tp's them to the correct coordinates, but I cannot see the player for obvious reasons. Any ideas why persistence may be blocking changing my players x and y coords?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Persistence doesn’t affect x and y, it must be something else. It may be that you’re setting x and y when the player enters any room, or something else is moving them back. Put a breakpoint on when the player moves room and go through your code, you’ll find something that moves them. Or perhaps you have another player object already in that new room
@midwestvalues
@midwestvalues 3 года назад
@@LetsLearnThisTogether I think I figured it out. I believe my order was messed up. I now have an alarm trigger when the player hits the collider, a var stops the player from being able to move, the screen fades to black, sets the coords, swaps the room, black fades away and then the playermove var resets. Pretty seamlessly I may add! Great tutorial and honestly crazy that you respond to comments. Thank you!
@alexgoldendragon3435
@alexgoldendragon3435 Год назад
great tutorial even for new generations like mine :D
@mrdigao001
@mrdigao001 4 года назад
Very nice video! Thanks for your tips...
@alex.9027
@alex.9027 6 лет назад
Thanks you! It helps me a lot
@LightniteProductions
@LightniteProductions 4 года назад
But how do you make a transition in the menu like the splash screen of Undertale or the starting where it talks about the story itself? It has a slight transition where it moves to a black screen and then to the main menu for the splash screen and the next part of the story for the story part! I want to learn how to do that!! In other words, how do you make transitions without even moving a character? Like a timer that transitions you to the next scene! WITHOUT the character of course!
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
It sounds like what you want is a cutscene, where things happen on their own, or in a specific sequence you've laid out. The best way to do this is up for debate, but a simple way is to make a variable and set it to 0 (call it whatever), and in your step event have a series of switch statements or ifs, that do something at each increase of the variable. Such as: if (variable == 0) { //code to create a black rectangle over the screen ++variable } if(variable == 1) { ///draw text to the screen for a while, when done, increase variable again. } And so on and so forth.
@ZombifiedGT
@ZombifiedGT 8 месяцев назад
i have tried several tuts and none work, i followed everything but whenever i touch the warp part, it just freezes my game ( it gets stuck in its current position and like completely freezes )
@LetsLearnThisTogether
@LetsLearnThisTogether 8 месяцев назад
If it freezes, do you have to force close the application (just pressing x doesn’t work)? If so, you’re in an endless loop somehow. This could be by an actual while loop, or by warping your one room and immediately warping back to another, and doing this endlessly. Try starting by just having a warp in 1 room to another, without anything in that new room.
@supersayan6318
@supersayan6318 10 месяцев назад
I tried this, it works, but even though I specified the targetX and targetY, it doesn't set them in the next room.
@StretchyMask
@StretchyMask 7 месяцев назад
You have to make sure the player isnt moving. // Check for collision with o_warp if (place_meeting(x + hspeed, y, o_warp)) || (place_meeting(x, y + vspeed, o_warp)) { // If colliding with o_warp, stop movement hspeed = 0; vspeed = 0; } the place_meeting will stop the player movement coordinates and it should teleport them to targetX and targetY now.
@Simkets
@Simkets 2 года назад
Oh god, I've spent two hours trying to figure out why the X and Y doesn't work. Instead of teleporting the player to the X and Y positions, the player is appearing in room 2 in the same position where the warp object is located in room 1. I haven't found the issue (yet), but I'm already exhausted. If I'll figure it out, I'll make sure to edit this comment so others can see it in case they encounter the same problem.
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
If you want, you can send me your project and I’ll take a look at it. Email me at aaron@letslearnthistogether.com
@Simkets
@Simkets 2 года назад
@@LetsLearnThisTogether Phew! Haha, thank you for the offer. I haven't figured out why your code doesn't work, so I have instead created more complicated system xDD I've created a persistent object that checks for the player: //-----Check for player if (instance_exists(obj_player)) { instance_destroy(obj_player) instance_create_depth(255, 45, 99, obj_player) } else if (!instance_exists(obj_player)) { instance_create_depth(255, 465, 99, obj_player) } //if instance_exists(obj) then delete instance and create new one //else !instance_exists(obj) then just create new one Player is not persistent. So, since the player doesn't exist in the second room, when he enters the second room, it spawns him at the coordinates I want him to spawn. And, since he already exists in the first room, when he comes back, it deletes him and spawns him at different coordinates. It works with what I want to do. Just a heads up for anyone who might be reading this. If you have a third room, fourth room, etc., it will always spawn the player at the same X and Y coordinates as in room 2. So, this only works if you have two rooms. However, you might be able to create another object that destroys the player check object and overrides it with its code. :D
@Darthrare
@Darthrare 2 года назад
@@LetsLearnThisTogether this is my same issue with mine. I thought I was going crazy, but then I downloaded your project and it happens there also. I'm using GMS2 and I think the version of GM is the issue. 😞
@Darthrare
@Darthrare 2 года назад
I freaking got it. Although I saw your comment that a new version of this tutorial was available I noticed that the warp object had to be persistent for the coordinates to be set to the player object. Thanks a bunch anyway 🙂
@MalligatorXD
@MalligatorXD 6 лет назад
super easy to follow. thank you!
@netowgtz
@netowgtz 4 года назад
hey man, does the colllisions works even if my player has the "if theres nothing x pixels ahead u can move"? beacause i have this problem where i do get the collision but the room doesnt change, and i can move the character and get it back, but when it gets back it gets stuck
@mikeregular2893
@mikeregular2893 3 года назад
can you help me. my warp warps me to the room I want, but it warps me to the coordinates that I entered the warp.
@Endriwcis
@Endriwcis 3 года назад
with me too lol, is this something of the new gamemaker versions?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Check out my updated version of this video for common errors and bugs, like this one that I breakdown.
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
It's not an issue with new versions. Check out my updated video. If you're still having issues, you can email me your project.
@aaronwise1089
@aaronwise1089 7 лет назад
Sweet I wish I had known this method earlier
@thejzm7145
@thejzm7145 7 лет назад
plz help FATAL ERROR in action number 1 of PreCReate event for object obj_warp: Variable obj_player.room_1(10005, -2147483648) not set before reading it. at gml_Room_room0_Creatle(line 5) - targetroom = room_1;
@rubiospiojos
@rubiospiojos 3 месяца назад
Lots of thanks!
@JayDeeWagwan
@JayDeeWagwan 3 месяца назад
ive copied this video so many times but for some reason it wont let me spawn on the x and y, anyone know why?
@gabrielerizzo6695
@gabrielerizzo6695 Год назад
Probably none will reply. There is a method to set the targetX and targetY to a precise instance? I mean, the problemi with the solution of the video is that if I wanted to move the portal I have to change the position of the respawn everytime. Can I link two portal in which doesn't matter where I put theme they are always linked? Or is it impossible
@LetsLearnThisTogether
@LetsLearnThisTogether Год назад
Do you mean 2 portals in the same room? In that case, you could, yes. A little bit of work, but you could use instance_find to find the other portal, and then set the ID to that. If it’s another room, that’s much more difficult. You can, but you’ll need to go into that room, save it’s ID in a file, and then read that file and get the info and put it in the other warp. Not super easy, but possible.
@majkisek6295
@majkisek6295 5 лет назад
Ok i fixed it somehow but now i have a new problem. When i teleport my player he just falls through the ground :D
@kirstenspringer5401
@kirstenspringer5401 3 года назад
I downloaded your finished project and Sara disappears when the room transitions and I'm not sure how to fix that.
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Check out my updated video on room transitions, I try to cover a bunch of the common bugs.
@treyvonbryant3538
@treyvonbryant3538 7 лет назад
How to make new landscapes for different levels?
@liawu4789
@liawu4789 5 месяцев назад
Very helpful! Thank you so much 🎉❤
@videomaker648
@videomaker648 11 месяцев назад
How can i make the music from room 1 stop and then room 2 music begins to play?
@LetsLearnThisTogether
@LetsLearnThisTogether 11 месяцев назад
Music is different because once it starts it will continue running without an object. This means you really need a persistent object to keep track of your music. In the room star event, you can check which room you’re in and stop and start music as needed in there.
@lukebauer843
@lukebauer843 6 лет назад
What if I have at the start of my game explaining something with dialog (undertale-like) and then it transitions on to the main menu or the start of the game... How would I code that?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
You'd put the code to move rooms at the end of that dialog/cut scene. I've got a tutorial on both of those. Feel free to check them out. Once you understand how to do something, the hard part becomes how to do it in the specific way you want. But there's always a way.
@lukebauer843
@lukebauer843 6 лет назад
Thank you so much! What are those videos called?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
Check them out here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_4c2l6jXjDw.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UIGC9aioyfk.html
@Mac_DeMarten
@Mac_DeMarten 2 года назад
I have a problem at 3:46, if I write " var targetroom, targetX, targetY; " then it gives me yellow triangle and says " variable targetY only referenced once " what does that mean?
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
Var is a keyword that creates a local variable, only usable in that event. Go ahead and remove it. The warning sign means it hasn’t been used anywhere else, and if you see this outside of a create event you’ve probably got a typo.
@bibee1633
@bibee1633 7 лет назад
I got some problem here, it seem that my player go to another room but I can't see it in the new room however if I walk to the warp I can go back to the first room and I can see my player again. I don't know what happen :((
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+BB.P Wongchanglor What can't you see in the new room? Your player? The warp?
@bibee1633
@bibee1633 7 лет назад
My player. seems like it invincible in that room
@bibee1633
@bibee1633 7 лет назад
I can fix it now. It just have some problem with my Tile set. Thx :)
@KzmGaming
@KzmGaming 6 лет назад
Brother why can't export my game I pay the license i have problems when I created keystone its says something about keytool command any one can help please
@emilkummerfeldt9836
@emilkummerfeldt9836 3 года назад
please help me. ( i know this has to do with nothing, but please help me anyways i really need help, someone ) when i walk into a wall, i can only move up and down, but that's now even all, i can only move up and down if i face to the right and not the left. if i face to the left i cant move. if i face to the right i can only move up and down. please help me someone i beg you
@egosactorco
@egosactorco 6 лет назад
Hey, I'm not sure if you have another video covering similar stuff but I was wondering how to have the screen fade to black when you hit a warp block then fade back in when you enter the next room.
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
It appears I don't, although it's on my list to do very soon. What you can try though, is basically creating an object that's black and fills up your entire screen. Make it transparent at first, then decrease its transparency slowly when you hit the warp, and reverse on the other side.
@egosactorco
@egosactorco 6 лет назад
Beyond Us Games ok I’ll give that a try, if it’s not too much to ask do you know if there’s like a command or something to use when dealing with transparency ?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
Yeah, it's image_alpha. docs2.yoyogames.com/index.html?page=source%2F_build%2Findex.html
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
And I just put a video about it: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-z_SYGyLegb0.html
@EBarSays
@EBarSays 7 лет назад
Thanks for this.
@vitinho5089
@vitinho5089 3 года назад
Thanks for video bro you save my game lol
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Anytime.
@raidoukuzunoha9874
@raidoukuzunoha9874 4 года назад
i made 2 gates - one gate from level0 to level1, one gate from level0 to level2 but the level0 to level2 gate didnt work, it juz pause the game and the coding looks the same, only the destination n room target are different right? wut did i missed here?
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
That’s odd. If it pauses the game then you may be stuck in a loop from moving from one room to the next, because you set the coordinates on the gates. Make sure you’re spawning not on a gate.
@raidoukuzunoha9874
@raidoukuzunoha9874 4 года назад
Beyond Us Games it seems that its not a pause but a crash. Idk wut happened here but i delete the room n duplicate level1 to be level2 as the gate level0 to level1 worked. But ididnt think about theres possibilities of having that loop. Ill try see to that if im makin the next level. I hope thats the case.
@grimjwo
@grimjwo 3 года назад
Hi ! I don't know why but even if i select my oPlayer to persistent he's not here in the nextroom ! Help please !
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
If you’ve marked persistent, he’s there. But he may be off screen or hidden behind a layer. If you know the debugger, run that and check his depth in both rooms. If you don’t know the debugger, add a debug_message function in your player and have them write out their depth and then compare to the layers in both rooms. My guess is you have a background layer your player is moving to, hidden behind it
@grimjwo
@grimjwo 3 года назад
@@LetsLearnThisTogether Yes the object appear ! but even if i choose the X and Y location it always appear in the same place ... then it fall in the void. What to do ?
@canchrisget500subswithcomm8
@canchrisget500subswithcomm8 7 лет назад
Hey, I have an error. Whenever I collide with my object that has the warp code in it, it does nothing. I followed along with the video, and I made sure that the places that the character going to is not on top of another warp, but I just does nothing.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+DOLE '\ Hmm. Put a show message in the creation code of the other room. If it fires, you're going to the room. If not, then double check your code against mine. Nothing is odd, there's usually an error message.
@Ramiel981
@Ramiel981 7 лет назад
Hello! Loved the tutorial and subscribed, looking forward to checking out the rest of your content. However I am having a bit of an issue getting it to work correctly. When my player object hits the warp the room changes but I'm unable to see my player object in the new room. I'm fairly certain it's actually there because if I press up as if to back my player up into the return warp it transitions me back to the previous room. I only have 2 layers (Instances and backgrounds).
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+Ikari Well then, that's odd. It sounds as though your player's visible variable gets set to false when you go through the warp, but that seems unlikely.. Why don't you export the project and email it to me Aaron Craig. I always enjoy finding unique bugs.
@Ramiel981
@Ramiel981 7 лет назад
Thanks! I've sent the email over to beyondusgames@gmail.com. It's probably something really minor and silly that I've missed so I apologise in advance.
@LetsLearnThisTogether
@LetsLearnThisTogether 7 лет назад
+Ikari No worries. I'll get back to you soon.
@Ramiel981
@Ramiel981 7 лет назад
Just incase anyone else runs into the same issue somehow, the depth of my layers were out of whack so give them a look! Thanks again, Beyond, much appreciated!
@1lipefellipe266
@1lipefellipe266 4 года назад
Thank youuuu I love you
@raidoukuzunoha9874
@raidoukuzunoha9874 4 года назад
how about using the pos x and pox y of that warp but juz plus some distance like posX -= 50, posY = 0 as the warp position
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Yep, that would work.
@nikitachadyuk5393
@nikitachadyuk5393 6 лет назад
Straight to the point. Love it.
@justinsmith3940
@justinsmith3940 5 лет назад
I am in game maker studio 2 and when I transition to a room then come back to my original room the non persistanct objects do not load. How do I make the non persistanct objects load again so my room looks the same when I go back into it????
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
That's a strange issue. Are you deleting those objects before you leave? A persistent room should stay the same when you leave and come back. If you want the room to totally reset each time you enter, make sure the room isn't persistent.
@vrtexxradiation
@vrtexxradiation 10 месяцев назад
this is a great tutorial but the thing is in the creation code when I warp to rooms, the player is set to the area where the warp is and doesnt use target_x and target_y. please help.
@LetsLearnThisTogether
@LetsLearnThisTogether 10 месяцев назад
Typically this is because after you run into the warp you’re still allowing the player to move, and that move logic actually runs off the old x and y of the player, not the new one. What I’d suggest is when you run into the warp, pause all input from the player, move and warp, and then resume input. Typically that kind of logic is controlled by a state machine.
@vrtexxradiation
@vrtexxradiation 10 месяцев назад
@@LetsLearnThisTogether can you show me an example?
@LetsLearnThisTogether
@LetsLearnThisTogether 10 месяцев назад
@vrtexxradiation //code when you hit warp cantMove = true //in your movement code if (cantMove == false) { //regular code for movement } //start of new room cantMove = false That’s as simple as you can get. You can’t move when you begin warping and you can move any other time.
@vrtexxradiation
@vrtexxradiation 10 месяцев назад
@@LetsLearnThisTogether ah thanks
@penguindev4474
@penguindev4474 2 года назад
I made it so that you have to click this icon instead of touching the warp because my game only has 2 rooms, but for some reason, even if my character is on persistent, when i teleport to the room he doesn't appear, i tried making the warp collision based but the player still doesn't show up, does anyone know what is happening?
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
First determine if the player is transferring or not by using the debugger. You can use it to see if the object does move to the new room. If not, you may have a bug. If it does move to the new room, then check depth and drawing objects as you’ve probably got your player behind something in your new room.
@penguindev4474
@penguindev4474 2 года назад
@@LetsLearnThisTogether I put in the wrong x and y positions i accidently mixed up the x and y, so i was stuck in a wall in the corner and i didn't see the player i fixed it though
@Kotjek
@Kotjek 5 лет назад
awesome but i wanna make animation between the rooms and sound playing when i hit warp
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
I cover the animation part in another video, and you can add in sound pretty easy with the animation.
@fabianorodrigues6131
@fabianorodrigues6131 4 года назад
Thanks!!! work perfect!!!
@sumbudi2734
@sumbudi2734 3 года назад
it changes the room but doesn't take over the new coordinates, already thought of using global variables... some help?
@sumbudi2734
@sumbudi2734 3 года назад
btw great tutorial keep it up :D
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Check out my updated tutorial of changing rooms. It addresses some of the common problems like you’re encountering.
@munagah
@munagah 4 года назад
my placeholder keep being squished, please help me i don't know what to do.
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Squished like when you run the game? My guess is you're using a camera, and the ratios you're using don't match up.
@borzageorgemarian4924
@borzageorgemarian4924 5 лет назад
Hi i have a problem , i did the tutorial , it worked and i thank you for making the video , but i made an menu , at the start and now i freezes evry time i hit new game if in the room i want to start are any teleporters, why did that happend?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
The only reason I can think it would freeze is if you’ve got a loop of teleporting between rooms. Such that you start in room a, then immediately get teleported to room b, and then immediately back to a, and so on. Check where you’re teleporting and make sure that’s not happening.
@puteridiyana94
@puteridiyana94 6 лет назад
nice video bruh. but i have some problem. the code seem work but when i try run it. my player enter the other room but i cant see my player. invisible. i dont know where my player go n cant go back to the main room. can u help me?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
Is your player marked as persistent? If not they won't be taken to the other room. If they are persistent, you need to check your room layers, as your player could be on a layer lower than the visible lower, causing your player to act invisible.
@MichelleMoonknight
@MichelleMoonknight 5 лет назад
Hi, when I step into warp it says the line5 in collision with player and warp in line5 - objPlayer.x = targetX is wrong. what am I supposed to do?
@LetsLearnThisTogether
@LetsLearnThisTogether 5 лет назад
Can you post the actual error?
@MichelleMoonknight
@MichelleMoonknight 5 лет назад
It works I just accidentaly ticked the "flip X" so It didn't worked. My bad but great tutorial indeed
@SeanStinksAtRoblox
@SeanStinksAtRoblox 4 года назад
Game is crashing everytime I play help me code error is Room_goto - and also by “TargetRoom” what am I doing wrong??
@blajackt1574
@blajackt1574 3 года назад
Donot do Room_goto do room_goto and to targetroom.
@comajuice
@comajuice 6 лет назад
hey, ive never had this issue in the past but now room1 overlaps room0 when i warp. Room0 doesnt disappear, it just stays in the background while my new room is in the corner. How can i fix this?
@LetsLearnThisTogether
@LetsLearnThisTogether 6 лет назад
That’s very strange. So you’re in 2 rooms at once?
@comajuice
@comajuice 6 лет назад
@@LetsLearnThisTogether yeah basically? The only way I could fix this was by using a camera/viewpoint, making the screen zoom in so much you only see that room.
@joeycrisp3738
@joeycrisp3738 6 лет назад
you are the man. thank you
@dmac2016
@dmac2016 3 года назад
Hmm. I did everything right and the collision won't work. For example, when I run into the warp, nothing happens. Doesn't even have collision. Solutions?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
Check out my newest collision video with a similar name. It covers issues like this more thoroughly. The problem is probably from both of your objects being marked as solid. Uncheck that and try it.
@dmac2016
@dmac2016 3 года назад
Which video is it?
@LetsLearnThisTogether
@LetsLearnThisTogether 3 года назад
GameMaker Studio 2.3 - Creating & Changing Rooms, my last upload.
@thenoseguy
@thenoseguy 2 года назад
When I collide with something else while I'm colliding with the teleport, it doesn't move my character properly and keeps its position the same while teleporting to the other room. What do I do?
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
It sounds like you’ve got some extra code beyond mine interfering with the teleporting. Colliding with another instance shouldn’t mess up warping, so double check your code against mine to see if you can spot a difference.
@thenoseguy
@thenoseguy 2 года назад
@@LetsLearnThisTogether I'll mess around with it a bit and see what I can find.
@azeriustv4642
@azeriustv4642 4 года назад
Dont know why. But it have a Problem with Step Events from my Character. Wayne wich Code stands there. FATAL ERROR in action number 1 of Step Event0 for object obj_player_idle: Unable to find any instance for object index '100047' name '' at gml_Object_obj_player_idle_Step_0 (line 1) - if input.magicatack ############################################## Someone any ideas ?
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
Looks like a mis spelling. I see a variable with a name attack and it only has 1 t.
@azeriustv4642
@azeriustv4642 4 года назад
@@LetsLearnThisTogether Thx u very much for trying to Help. Stupidly i Always write it that way… :/ And it doesnt Matter wich Line of Code is writen here. If i delete this Code it Show error Message kinda similar to this. But with the next Code wich has something with Input in it... :/ Need a Hero. What Kind of Game is it without teleport
@dmac2016
@dmac2016 4 года назад
It worked but after going to the second room, I can't go back to the first room.
@LetsLearnThisTogether
@LetsLearnThisTogether 4 года назад
This is a common issue. The most likely problem is that when you try to go back to the first room it warps you onto the warp in the first room, which then takes you right back to the second room. Try moving the warps around and see if that helps.
@EvalenaEggnog
@EvalenaEggnog Год назад
@@LetsLearnThisTogether Hi i'm also having this issue, even when I delete the warp panel from the second room, I keep getting the error when i move back to where I warped from "ERROR in action number 1 of Step EventobPlayerOrange for object ObjWarp: Variable ObjWarp.targetRoom(100003, -2147483648) not set before reading it. at gml_Object_ObjWarp_Collision_ObMotherGoblin (line 3) - room_goto(targetRoom); ############################################################################################ gml_Object_ObjWarp_Collision_ObMotherGoblin (line 3)"
@zeewhel
@zeewhel 2 года назад
when i try this it warps my character on the same x,y that the warp obj is, please i've been stuck on this for about a week
@LetsLearnThisTogether
@LetsLearnThisTogether 2 года назад
I’ve got an updated version of this video on my channel. Check it out, I cover some of the problems you might run into. If you can’t figure it out, you can export your project and email it to me. I’ll check it out
@zeewhel
@zeewhel 2 года назад
@@LetsLearnThisTogether i watched your 2 videos but it still not working, i think the problem is that some code on my character may be conflicting with the warp code, but i can't figure out which code is doing this
Далее