You can create a more complex blade obstacle with several joints.
- [Instructor] Now let's use two revolute joints…to create a slightly more complex obstacle.…We'll create a swing blade,…but this will be a double swing blade.…In our obstacles folder I'm gonna create a new group…and call it double swing blade.…I'm gonna go into the swing blade folder…and duplicate our swing blade pin object.…I'll right click and select duplicate.…Then I'll rename this as O_D_swing blade pin…for double swing blade pin.…
Click OK.…And then let's drag this into the double swing blade folder.…Looks good.…Then I'll create two more objects in here…the first will be our object for the swing blade arm.…So we'll call it O_swing blade_arm.…I'll select the sprite in obstacles.…Double swing blade.…Swing blade arm.…Check the uses physics button.…Set our collision shape to be a box…and let's modify the collision shape.…
We can see here the swing blade arm…is just like our single swing blade…but it doesn't have the blade attached at the bottom.…That's the part we'll attach with our new joint.…And to drag my fixture down to fit the arm better.…
- 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.