Hello again! I am trying to make a mechanic where people would be able to phase into walls and have to platform inside them to move around, and deactivate to go back into the normal map. I got this to work, but the CPU spikes when toggled. I have it set up like this:
You press CTRL, a canvas covering the map if filled with white, the block objects spawn eraser objects onto a canvas and are pasted into said canvas. The canvas then updates a mask and all blocks are made nonsolid. When going out the canvas clears to transparent and blocks are set to bounding box collision, pushing the player out.
I can see where this would cause problems, but how else could I go about doing this, in a more efficient manner?