‘ grav’ is the gravity for our player.‘grounded’ is a simple true/false variable that keeps track of whether or not our player is standing on ground.Some people prefer xspeed and yspeed, but i find vx and vy easier to type quickly. ‘ vx’ and ‘ vy’ are short for Velocity X and Velocity Y, and represent the player’s current motion. I’ll go through and explain each individually The first script is called ‘ plat_start’Īll we do here is initialize some variables. This can be done in the object, but personally i prefer to put it in a set of scripts so that I can easily make multiple moving objects. Next, it’s time to make the platforming engine itself. The exact details don’t matter too much, just make sure it’s a good size and change the ‘room speed’ to 60 so the game runs smoother. This will make the walls and ground of our game. Make an object and assign it the block sprite. For those unaware, the origin is the center of the sprite, and dictates how it scales, rotates, and is placed in the world. Keep the origin of the block sprite at (0,0), however I’d recommend centering the player’s origin. I use ‘ spr_’ to denote sprites, ‘ obj_’ for objects, etc.) (Name them whatever, just make sure it’s concise. Make two sprites, one for the ground and one for the player. We’ll work with placeholder art for now, and add better looking pixel art in a later tutorial. (This tutorial assumes you already have GM:S installed, and a basic grasp of how it works)įirstly, let’s get some sprites in place. However, without further ado, here we go! Most of this info is also available on YouTube, and if you want I’d highly recommend people like Shaun Spaulding, Heartbeast, and RealTutsGML for more in-depth videos. I decided to start doing some simple Gamemaker tutorials to pass on the knowledge I’ve accumulated through my time making games.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |