You can see how to create a linked object like a chain. You can use this to decorate your level and as a building block for upcoming objects.
- [Instructor] Let's take a look at how our chain controller…is gonna work before we get started programming it.…I'll open up our room editor.…Zoom out a bit.…Let's make sure our knight character…is here where we can see him.…Go into the Objects tab.…I'll select Chain and put in our chain controller.…And the way it's gonna work is we can drag out…our chain controller as long as we want,…and we'll create a pin at the origin of this sprite,…connect up chain links as we march through a loop,…and then create a final pin at the end of our sprite.…
These will all be connected by revolute joints…so that our chain looks natural.…At the very end, we'll change the position…of our final pin to wherever we rotate our sprite to…so that our chain can go in any direction we want.…Let's close out the room editor and get started.…I'll open up our chain controller,…add an event,…and to create an event.…Let's drag in some code.…And we'll title this create chain.…
So the first thing we need to figure out…is how many chain links will fit in the sprite…
- 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.