RPG in a Box - Free Movement Door Mechanic

Channel:
Subscribers:
8,410
Published on ● Video Link: https://www.youtube.com/watch?v=rR-JmkoLM2g



RPG in a Box
Game:
Duration: 0:33
2,117 views
125


Even though free movement still has a long way to go, here's a fun and simple door mechanic you can play around with!

Create a key item and object model (with passable enabled), then a script that gives the item to the player via "Give Item" and removes the entity from the map via "Remove Entity". In the Voxel Editor, assign this as the default script for the "Character Collides" event. When placed into a map it will automatically behave like an item pickup!

Finally, create a generic door script that checks if the player has a key and, if so, removes the key and the door itself to allow the player to pass through.







Tags:
gamedev
indiedev
voxel
voxels
rpg
engine
rpginabox



Other Statistics

RPG in a Box Statistics For RPG in a Box

Currently, RPG in a Box has 511,656 views for RPG in a Box across 124 videos. There's close to 3 hours worth of content for RPG in a Box published on his channel, or 85.91% of the total watchable video on RPG in a Box's YouTube channel.