Game Maker 7 Sprites
I'm having trouble displaying 2d sprites that always face the camera in Game Maker. If it helps at all, I'm using Drandula's 3d Zelda engine. Making 2 sprites on 1 object? (self.gamemaker) submitted 2 years ago by unicornfish. I'm making a topdown game where the player moves with WASD.
Step Use the resource menu to make a new sprite. Edit the sprite in the Image Editor to draw a picture of a man standing straight up in profile and save it by clicking the green check mark. Once you are back in the Sprite Editor, click 'Animation' and 'set length.' You should enter the number of frames that your walk cycle will include as the length of the animation. For this tutorial, you will make the simplest walk cycle possible: enter an animation length of two. You should now see two thumbnails of your standing sprite. Open the second one, set the right mouse button to your background color, and use the draw box tool to erase the legs.
More Game Maker 7 Sprites images.
Draw the legs now so that it appears that the man is walking, with one forward and the other back. Honda 125cc Dirt Bike 2 Stroke here. Click the green check mark to save. Finally, create a sprite of a solid color to represent the floor. Be sure to turn off transparency for the floor sprite. Step Use the resource menu to create an object that uses the floor sprite.
Ensure that it is marked as visible and solid, and save it. Create a new room (again with the resource menu), and draw a simple floor along the bottom using your floor object and save. Step Create the walkingMan object. Be sure to set the walkingMan object as being both solid and visible. Step Add a 'press spacebar' event. This event will use two actions.
First, the 'move fixed action,' set to a speed of 1, a direction of right, and with the relative box checked. Second, find the 'execute code' action under the Control tab and drag it into the 'press spacebar' event's action list. A small text editor will pop up, and you should type in the following code: // Set the animation speed to 1. Image_speed = 1 Step Add a 'release spacebar' event. This event will also contain the same two actions, with a few changes. The fixed movement action in this event, rather than setting the speed to 1, will set it to 0, causing the man to stop moving. If you click 'run' at this point, then you will get an animation of a man who walks forward whenever you press the spacebar and stops to walk in place whenever you release it.
That's probably not what you want. You probably want your man to stand still when he is not walking forward, so you will write another 'execute code' action to achieve this.
This time, type in the following.