Hello everyone, in this GameMaker Studio 2 Tutorial video we learn how to make an object that let’s the player dock in a space station to repair itself with a button. This method goes over methods that teach you how to nest some conditional statements and else handlers to get the outcome you want using ‘and “&&”‘ (and) ‘or “”||”‘. We go over the logic that stops the player from wasting minerals if they don’t need healing in order to keep the player from getting frustrated. We learn how to check where the mouse is at and create clickable buttons that play sound effects and animations as well as execute whatever code you want. We create a new room, and a few new objects as well as a new sprite (which I’ve done off camera to save time.) We add a conditional to the player’s movement, and stops the player from shooting lasers, bombs, and moving while inside the station. One thing I showed, but forgot to actually talk about is making the player object persistent. (The player object needs to be persistent in order for it’s values to be referenced while inside the station.) Towards the end of the video I talk about some typical pitfalls that come along with making games, as well as give some valuable advice about making games in general. (Make several small projects before you try to make a medium size game.) I hope you find these tutorials helpful, thanks for watching.

If you’ve enjoyed this video please consider giving it a Like, Favorite and share. You could always Subscribe to the channel if you haven’t already and as always, thanks for watching and we’ll see you in the next video! 🙂

DG Discord Server:

Website:

Twitch:

Twitter:

Patreon:

——————————-
Special thanks to all my Patrons:
Damian Floyd, Fun4theBrain, David Philips, Studio Blue, Battle Pisces Gaming, Michael Flynn, John Gibson, ChrAndGow, Scott Zarwell, Edwardo Santizo, NeoSoulGamer, Jai R Fisher, Rusty_Gears, Meteodros, R.A.M, Valryia, DarkKrow13, StalkerRoguen, Ervin Mcclure, Chris Van Essen, Mithrandir, Michael Noles and those of you who have supported me in the past.

Nguồn: https://shaarique.com/

Xem thêm bài viết khác: https://shaarique.com/game/

3 Comments

Le Vu

July 10, 2020

How' bout using event Mouse, Left Press for the obj_repairBot ?

Reply

X8Squish8X

July 10, 2020

More

Reply

Jordan The One

July 10, 2020

I was more focused on the background… (jk)

Reply

Leave a Reply