๐โโ๏ธObstacle course tutorial
Get familiar with Mutate by building an obstacle course.
Last updated
Get familiar with Mutate by building an obstacle course.
Last updated
Create a new game and choose the template โTutorial Obstacle Course.โ Give it a name, and a description and thumbnail if you want to โ you can always edit these whenever you like.
Thereโs some things in this course that need fixing. Try out the course with a play test to see how it feels, and see if you can figure out what you need to do before getting started.
Ok, first things first! We need to fix the spike trap, since thereโs no challenge to them right now. Duplicate a set of spikes to fill the gap in the middle by holding down Alt, then click-and-dragging from one of the original spike sets with the Transform โMoveโ manipulator tool.
Tip: you can do this by eye, or with more precision using Global or Local Axis arrows to keep your movements in perfectly straight lines.
Already looking a little more deadly, so letโs hope youโre good at jumpingโฆ
The portal trap is stopping midway. Open its Mover component and adjust its end position coordinates to make it go past the ditch. We can also make its speed higher now that it goes the full length, so you really have to duck and hide to avoid getting zapped!
You can even set the portal to move back and forth for extra difficulty; just select โYesโ to โYo-yoโ in its component settings ๐ช
Help the player get over the terrain blockages by adding Force Zone components to the glowing blue braziers you see. The pink box that appears indicates where you can be โforcedโ to, so make sure theyโre tall and wide enough to get where you need to go.
To bridge the gap between the islands, youโll have to play with rotation as well as size, but upping the force intensity can help with long distances by propelling you forwards!
Now all you have to do us duplicate a third brazier onto the middle island, and make it up to the platform! Good thing youโre already a pro at duplication, right? ๐
Force Zones are basically a way to help a player reach impossible places they canโt jump to. Think of them like levitation pads โ they work by the game forcing you to touch anything but the object theyโre connected to!
Itโs always good to test your creations once in a while. Feel free to test what youโve built so far, and see what youโve already got under your belt. Take the time to play around with settings some more if things arenโt how you want them.
Time to fix the big button that does nothing right now โ it clearly has a faulty fuse. We want to create a set-up that destroys the wooden door when you push the button.
First, add the Interact component to the button and change the interaction text to something like โPushโ or โBoom!โ or โDetonate.โ Then add the Destruction component to the door. Now we need to make a connection between the button and the door. Head to the Linking tab to get started.โ
When we create a new link we get to pick an Event and then an Action, which are both generated according to the specific component on each object. You can think of Events and Actions like this: When X happens (event): the game does Y (action).
Select the button, press the orange + and choose โInteractedโ from the list that appears. Now click on the orange box that should have appeared on the door, and choose โDestroy.โ A straight line should now form between the linked objects to let you know it worked!
Thereโs just room for a little more. For our new obstacle, weโll be using a spiky ball coming to crush you, but feel free to get creative with your own build.
Scroll or type to search for the item you want in the asset browser. When you find it, simply drag it onto the scene, and adjust it into position near the house. Play around with size and rotation to make it really feel like a final hurdle!
We need to add two components to make this obstacle function: Mover and Collider, so go ahead and add those.
First, tweak the end position settings for the Mover; make it so the obstacle can move all the way up to the broken door. This may take a little trial and error until you get used to each axis, but keep at it!
Then weโll do something called self-linking; we want to tell the ball to restart once it hits its end position. For that we create a link using the event โReached end position,โ and clicking on the little symbol just above the + on the same box as the currently selected item, finishing with the action โTeleport to start position.โ
To keep the ball rolling down over and over, link again from โReached start positionโ to โMoveโ or โMove forward.โ
To make the ball seem like itโs actually rolling, you can play with the Rotator component too, but thatโs totally optional at this stage!
To really raise the stakes, next weโll do something called player-linking; instead of linking our object to another object or to itself, it will interact with the player. The Player link icon looks like a little orange person when in Linking mode, so you canโt miss it!
We want to link the obstacleโs event โStarted collidingโ to the player action โRespawn,โ and selecting โTriggering player.โ So now if a player collides with the big spiky ball, only the player who touched it will respawn. Ouch ๐
Optionally, we can trigger the ball moving with pushing the button we set up earlier; when we blow up the door, the ball gets released to come stop you! To do this, create another link from the button with โInteractedโ and connect to the ball with โMove.โ Just make sure the ballโs Mover component is marked โNoโ on โAuto-start.โ
Now you can play and change your course as much or as little as you want, and get inspired to create your own very soon. We hope you enjoyed the process. and thanks for following along with this tutorial! โ๏ธ