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,…
Author
Released
6/13/2017- 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
Duration
Views
Related Courses
-
Introduction
-
Welcome51s
-
-
1. Set Up Basic Game Components
-
Set up the project1m 57s
-
Import a static sprite1m 33s
-
Import a background sprite2m 22s
-
Create a physics room1m 30s
-
Enable views2m 30s
-
Parent objects3m 45s
-
Create static objects1m 52s
-
-
2. The Player Object
-
Create the player object2m 48s
-
Using Finite State Machines1m 38s
-
Player state machine3m 16s
-
Control logic: Jump state3m 50s
-
Make the player duck3m 57s
-
View following and debug3m 18s
-
Swap fixtures4m 3s
-
-
3. Create Physics Obstacles
-
Decorate level7m 13s
-
Static obstacles4m 59s
-
Single joint obstacles8m 29s
-
Multi-joint obstacles7m 11s
-
Create triggers3m 44s
-
-
4. Liquid Physics
-
Create water particles7m 20s
-
Floating blocks obstacle4m 15s
-
Destroy the particles6m 9s
-
5. Decorate the Level
-
Set up a chain generator2m 58s
-
Create chains9m 15s
-
Create a rope bridge6m 16s
-
-
6. Finishing Touches
-
Finish line3m 9s
-
Player death7m 7s
-
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Import a static sprite