![]() In the description comment change the description to Set up variables.Click Add Event button in the Events box and add a Create event.If you want to setup the game to work on most desktops and laptops, on the left side, under room settings change the width to 960 and the height to 640 Code the player object to move ![]() Drag the objPlayer object into the room.This can be seen in the Room Editor’s Layers panel. Make sure you are in the Instances layer of the room.Layers can be ordered by clicking and dragging, and you can add and remove them and even name them too from. This means that you can create a single layer for a base, and then over the frames add animations on different layers. From the Assets Browser, double click room0 or whatever the default room setup is called in GameMaker. The GameMaker image editor permits you to create multiple layers per sprite, and each layer has its own set of frames.To do this click on the 3 dots in the box beside No Sprite. Assign it the sprPlayer sprite you should already have created.Name the object objPlayer – note: You should always prefix your objects with the letters obj. ![]() In the Asset Browser / Resource menu area, right-click Object and click Create object. ![]() Tutorial 3: Create a player object, movement & animation ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |