Join Steven Moser for an in-depth discussion in this video Import a static sprite, part of Building a Physics-Based Platformer in GameMaker Studio Using GML.
- [Instructor] Next, let's create a sprite…by importing a single image.…I'll right-click on the Sprites folder.…See Create Sprite…and load sprite.…I'll navigate to the exercise files folder.…Head to resources, assets,…and this time let's create an obstacle.…I'll go into the obstacles folder…and I'll select the wood spikes.…Make sure to check the remove…background button on the right.…That will get rid of any white background…and make sure that it's transparent.…
I'll click open.…And we see our wood spikes loaded in this sprite properties.…I'll call it s_wood_spikes.…Lastly, let's pick an origin point…for the sprite that makes sense.…If I click the center button,…we'll see the crosshairs move to the center of the sprite…but what I want is to be able…to place the spikes on the floor…and have them align properly.…So I really want the y location of the origin…to be right at the bottom of the sprite.…
I can see up at top here…that the width of the sprite is 152 pixels…and the height is 150 pixels.…So if I set the y origin location to 150 pixels,…
- Setting up basic game components
- Creating the player object
- Using Finite State Machines
- Making the player duck
- Creating physics fixtures in code
- Creating physics obstacles
- Box2D liquid physics
- Creating particles that behave like water
- Creating a floating blocks obstacle
- Creating a swinging chain obstacle and a rope bridge
- Adding the finishing touches
Skill Level Beginner
1. Set Up Basic Game Components
2. The Player Object
3. Create Physics Obstacles
4. Liquid Physics
5. Decorate the Level
6. Finishing Touches
Next steps1m 2s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.