The simplest way to get started is by working with/making a copy of the ObbyTemplate scene. It has all the required manager objects already created and a few example obby nodes.
- Add a copy of the
EmptyObbyNodeprefab into the scene - Drag the obby node into the
Nodeslist of theObbyCourseyou want to add it to- Reorder the nodes in the list to change their order in the course
- Add any obby elements/objects you want!
- It's best to have all the objects of a node as children of the
ObbyNode.
- It's best to have all the objects of a node as children of the
- Make sure to move the
TargetGameObject to where you want the next node to start.- Changing the rotation of the
TargetGameObject also determines the orientation of the next node
- Changing the rotation of the
The ObbyPlatform component is used to apply effects to the player and register custom collision events.
Actor Effectvarious effects applied to the player during contact with the platform.Nonedoes nothing, use if you want to to add your own custom collision events.Killkills the player on touch.Forceapplies a force on the player while they are in contact with the platform- Applies a vector representing the force onto the player in either local or world space
Trampolinebounces the player into the air on touch- You can customize the height the player bounces with the
TrampolineHeightfield.
- You can customize the height the player bounces with the
- Events
OnPlayerEnteris invoked the first frame a player collides with the platform, does not get invoked again until player stops touching the platformOnPlayerExitis invoked the first frame the player leaves the platform after having been in contact with itOnPlayerStayis invoked every frame the player is in contact with the platform
The Obby Zone component acts as a trigger: the player does not collide with it, but will register events while the player is inside.
Actor EffectNone,Kill,Forceare the same as theObbyPlatformactor effectsSpeed Multipliermultiplies the player's speed by a given value while they are inside the zone- Multiplier can be negative (reversed directions), magnitude ranges from
0.1to10.
- Multiplier can be negative (reversed directions), magnitude ranges from
- Events
OnPlayerEnter,OnPlayerExit,OnPlayerStayare the same asObbyPlatform
Moves any number of platforms along a path or loop dictated by waypoints.
Requires at least 2 waypoints.
Waypointslist of transforms that sequentially form the path the platforms will follow.Platformslist of transforms representing the platforms that will follow the path. Don't necessarily have to beObbyPlatforms.LoopTypeLoopturns the waypoint path into a loop by connecting the first and last waypoints.PingPongplatforms reverse direction upon reaching either end of the path.Pause At Endsif enabled, exposes a field that represents the time in seconds to pause at each end of the path.
SpacingTypeMaxplatforms are evenly spaced as far apart as possible.Customexposes a field that allows you to add any amount of spacing between0and the maximum spacing.
Each ObbyNode has a Node Platform and a Target gameobject.
Node Platformis used for checkpoint purposes, by default it is the platform of the node itself.- If you want to add a custom checkpoint object, you must assign a different
Obby Platformto theNode Platformfield.
- If you want to add a custom checkpoint object, you must assign a different
- The position and rotation of the
TargetGameObject determines the orientation and position of the next node in the course.
Required for obby functionality
Default Coursethe course the player starts at by default, currently also determines which course is loaded when rejoiningAllow Course Hoppingin a space with multiple courses, allows players to switch between courses midway.- If false, the player will be teleported back to the last node they were on in the previous course.
Teleport Player To Node On Startenables save/load, teleports player to last node they previously reached upon joining- If player is new, teleports to first node.
New Node Particlesparticle effect played when player reaches new node.
Freeze Camera Durationhow long to freeze the camera upon player death (seconds).Death Particlesparticle effect played when player dies.