demo of key binding scene running in preview.
Using emote events as key bindings for switching between multiple paint colors, which can be expanded for something like weapon switching. To view the scene, please visit here.
- Use your mouse to look around and W A S D keys on your keyboard to move forward, left, backward and right respectively
- To jump, press the Space key
- To place paint onto the ground, use the Left Mouse Button
- Use the number keys 1 to 7 to switch between the various paint colors
- Use the E key to switch to the next paint color
- Use the F key to switch to the previous paint color
Install the CLI
Download and install the Decentraland CLI by running the following command:
$ npm i -g decentraland
Previewing the scene
Download this example and navigate to its directory, then run:
$ dcl start
The following files were taken from https://freesound.org/
- splat.mp3 modified from https://freesound.org/people/Breviceps/sounds/445109/
- switch.mp3 modified from https://freesound.org/people/ryanconway/sounds/240800/