Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Playmaker for Unity - DevSpace 2015
Search
LD Smith
October 10, 2015
820
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Playmaker for Unity - DevSpace 2015
Presentation I gave at the DevSpace technical conference in Huntsville, Alabama.
LD Smith
October 10, 2015
More Decks by LD Smith
See All by LD Smith
Mazes - Knox Game Design, February 2021
levidsmith
0
91
Sorting - Knox Game Design, March 2021
levidsmith
0
58
Animation in Blender - Knox Game Design, January 2021
levidsmith
0
120
Allegro
levidsmith
0
110
Raspberry Pi Arcade
levidsmith
0
86
Monogame
levidsmith
0
150
BBS Games, VT100, and ANSI Graphics
levidsmith
0
180
Color
levidsmith
0
53
Pygame - Knox Game Design, June 2020
levidsmith
0
82
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
225
10k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Darren the Foodie - Storyboard
khoart
PRO
4
3.9k
Become a Pro
speakerdeck
PRO
31
6.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Why Our Code Smells
bkeepers
PRO
340
58k
WENDY [Excerpt]
tessaabrams
14
39k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
430
Transcript
Playmaker for Unity Levi D. Smith DevSpace Conference Huntsville, Alabama
October 2015
About Me • Hobbyist Game Developer since 1995 • Unity
and other environments • Ludum Dare participant • Occasional Knoxville Game Design speaker
About Unity • Free • Unity 5 Personal • Pro
License • Build for multiple platforms
Playmaker Background • Cost: $95 – Often discounted • Requires
Unity 3.5 or higher • Created by Hutong Games (@HutongGames) – Alex Chouls and Erin Ko •玩
Getting Started • Unity Asset Store • https://www.assetstore. unity3d.com
Enabling Playmaker • New menu item • Select Playmaker Editor
• Playmaker pane
Editor Pane • FSM State Diagram • FSM • State
• Events • Variables • Preferences
Creating an FSM • FSM (Finite State Machine) – Zero
to many FSMs – States – Events – Transitions – Variables • Creating New FSM
States • Examples – Light Bulb – Game Character •
Only active at a time • Contains a collection of actions • Actions executed top to bottom
More on States, Events, and Variables • Active is highlighted
• Manually transition to state • Global Events • Global variables
Action Browser • Standard Unity methods • Additional helpful methods
• Actions are “Code” • Execute Scripts
Using Actions • Every Frame – Similar to Update •
Send Event • Delay value – Avoid infinite loops • Find Game Object
Managing Actions • Disabling actions • Copy and paste into
FSMs • Navigate with Project hierarchy • Lock an FSM • Show debug values
Prefab Actions • Create Object action • Destroy Self or
Destroy Object
Operator Actions • Number comparison – Most data types •
Boolean comparison • Events for each comparison • String operators
ArrayMaker • Storing array type information • Not included with
Playmaker • Downloadable from Playmaker website – https://hutonggames.fogbugz.com/?W715
Making a Light Bulb • Create FSM • Off and
On states • MOUSE DOWN transitions • Point light as a child • Activate Game Object actions
Moving a block • Add cube • Add a RigidBody
• Add a PlayMaker FSM • Add Moving State • Input > Get Axis – Transform > Translate • Or Get Axis Vector – Map to Plane • Order of actions is important • Double line button to toggle – Constant values – Variables
Follow Camera • Add FSM to Camera • Smooth Follow
Action • Target to player • Set Damping
Character Tips • Capsule collider • Freeze rotation axis –
Avoid “falling over” • Default terrain map – Zero to 600 • Character controller vs Rigid Body
Jumping • Idle State • Jumping state • jump event
• Get Button Down action – Send jump event – Transition to Jumping • Add Force action • Transition back to Idle • Self / World space
First Person View • Disable Smooth Follow Action • Set
Parent action • Set the Camera’s Parent to player
First Person Controls • Mouse Look action • Action must
be on the player object, not the camera! • Uses airplane joystick view control by default • Sensitivity values – Negative Y for traditional controls
Icon Display • “Gizmos” dropdown – Resize – Disable •
Playmaker GUI object
Fade In / Out • Add action to camera •
Set Color and Time • Event when completed – Reload level – Game over screen
Audio Actions • Play Sound • Audio Play – One
Shot Clip • Other actions – Mute – Pause – Stop – Play random – Set pitch, – Set volume
Contact • Twitter: @GaTechGrad • Web: levidsmith.com
Getting Help • Playmaker Forums http://hutonggames.com/playmakerforum/index.php • Playmaker Tutorial Videos
http://www.hutonggames.com/tutorials_game_design_with_playmaker.php • Playmaker Documentation https://hutonggames.fogbugz.com/default.asp?W1