I am making a voxel game. (think minecraft) Currently I’m calling it It’s Like Minecraft But It’s Not (Minecraft), or ILMBIN for short.
For the block selection, I am calling the block textures bID + a number (bID0 for example) I have a system where a q press decriments a variable called currentselect. an e press increments the same variable. This is used in the following variable called currentblock. This variable goes like this:
var currentselect = 0; var currentblock = "bID" + currentselect;
In my head this adds up to bID0, which is a block texture. then when you place a block it’s texture should be bID0, but instead it makes the scene freeze.
Any ideas on how to fix?