GameMaker Language or GML is the scripting language for giving objects functionality. In this video we use GML to give our paddle the ability to move around our game.
- [Narrator] Let's add some events and actions…that will control our paddle movement.…Uncollapse the Objects folder in the Resource Tree…and double click the paddle to open it.…Since we want our paddle to move left when we hold…down the left keyboard key,…let's go ahead and add an event for Keyboard Left.…Again we're going to choose the Control tab and drag in an…execute code action, and again we'll give it…a three slash comment.…This time our comment will be, move left.…And to make things easier to read I'm going to…increase the font size using F8.…
We need to write one line of code here…x equals x minus paddlespeed remember paddlespeed…is 10 because that's what we set it…in our create event script.…What this does is move the x position of the object…to the left a little, every frame.…Notice the x variable's red.…That's because it's a built in game maker variable.…Click the green check mark to save your script,…click okay to save the paddle object changes…and run the game.…And now we hold left on the keyboard and…
- Creating a new GameMaker project
- Creating sprites
- Importing existing images
- Adding collisions
- Playing sounds
- Designing game levels
- Creating start and game over screens
- Exporting the game
Skill Level Beginner
iOS Game Development with Swift 3 and SpriteKitwith Todd Perkins2h 52m Intermediate
1. Getting Started
2. The Game Pieces
3. The Gameplay
4. The Game Cycle
5. Finishing a Project
- 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.