Setting up the frontend
Your game is now functionally complete with monetization implemented. The frontend of a project refers to the part of the game that players see and interact with the most. The following steps are to beautify your stages, make your Obby come to life with effects and movement, and provide visual and auditory indicators to the client to let them know when something has occurred.
Let's start by seeing how to create effects for your Obby.
Creating effects
When creating effects, you want to mostly be operating on the client. This is because we want most of these effects to only appear locally for the sake of performance and to negate replication, meaning that if you want a sound to play when you collect a coin, you should be the only one hearing that sound.
To do this, you should create a new script under StarterPlayerScripts
titled LocalHandler
that contains the same code as the ServerHandler
script. The structure of systems going forward will be...