OH MY GOODNESS, AN ENDLESS 'THANK YOU'! You can't imagine how great this is! I've been working on my project for like half a year and since the very beginning as I added bigger rooms and camera, I had an issue with character violently shaking because of the way camera was attached to obj_player, as you mentioned all beginners usually do. It was one of only issues I couldn't fix and it was oldest! Now thanks to you it has been solved, finally, a such joy! I wish you the best luck and health!
Im creating another kind of game, and with this clamp function and your video the problem that I had with the camera is actually gone, Im feeling this like a miracle xD Thank so much !!
One thing I didn't cover is how to make the camera clamp based on rooms of different size. As long as you have a player object in every room and don't make it persistent, the 4 variables that we use to clamp inside the create event of the player object should work even if you have rooms of different sizes.
@@GameMakerRob I find out how to do what I was trying (I was trying to go out of the room if the camera, to ignore the room size like you did) thanks for answering
4:22, 5:44 The camera clamping code; I already knew the explanation (Thanks, Rob!)
OH MY GOODNESS, AN ENDLESS 'THANK YOU'! You can't imagine how great this is! I've been working on my project for like half a year and since the very beginning as I added bigger rooms and camera, I had an issue with character violently shaking because of the way camera was attached to obj_player, as you mentioned all beginners usually do. It was one of only issues I couldn't fix and it was oldest! Now thanks to you it has been solved, finally, a such joy! I wish you the best luck and health!
Im creating another kind of game, and with this clamp function and your video the problem that I had with the camera is actually gone, Im feeling this like a miracle xD
Thank so much !!
This helped me SO much in my sonic fan game!
I used this video but for some reason my player is not being tracked in the center of the screen. Any ideas on how to fix that?
Is it following the player at all?
One thing I didn't cover is how to make the camera clamp based on rooms of different size.
As long as you have a player object in every room and don't make it persistent, the 4 variables that we use to clamp inside the create event of the player object should work even if you have rooms of different sizes.
is there any way to make it work with persistent camera , like resetting the value during the room change ?
@@hamzaaslam381 Yes, use the room_start event if you want a persistent camera object to do that
@@GameMakerRob Thankyou soo much
You derserve so much more attention man, you saved my project!
i'm surprised this didn't get more views, because this literally fixed my issue with backgrounds lagging behind the camera
broooo i tried so hard to figure this out on my own but couldn’t cuz im a newbie at coding. thank you! 🙏🙏
We all started at the same point :)
how did you do to the camera go out of the room? i'm tring to do this for an infinit map game, but i cant do it
i dont understand the question sorry. Can you rephrase it?
@@GameMakerRob I find out how to do what I was trying (I was trying to go out of the room if the camera, to ignore the room size like you did) thanks for answering
YES, IT HAS APPEARED. THANCC.
Nvm, it's not centered vertically on the character yet. EDIT: NEVERMIND THEN IT IS NOW. Thanks Rob.
another good and helpful video, thx, rob
Thanks I'm glad you like it :)
Nice!
can you teach me how to make a pokemon battle system?
why does the screen have a black border?
It shouldn't unless you're displaying in full screen and the game aspect ratio doesn't match your monitor
outdated