Well, I'm here again with another help request.
I have been working on a very small "prequel" game to The 13th (I have been hit by writers block, and have no idea where I wish to go with the story, so I'm taking a break.) However, this "prequel" game is a puzzle game. Building the puzzles is the easy part for me, but getting the puzzle mechanics to work is where I am stuck. I have about 3 problems that are bugging me at the moment, but I'm going to start with one for now. The others will be posted once I am done attempting to "fiddle" with them. Anyway, umm... LETS-A-GO!!!
In this puzzle, the player must push some rocks around to either move them out of his/her way, or to put them on a button to open the way forward. However, alongside this puzzle is a working puzzle mechanic that allows the player to switch between orange and green walls. [Code Named: Bricks] (The bricks are opposites to each other, so... kinda like the red and blue walls in LOZ a Link to the Past.) Anyway, there is a picture to show the basics of what I have before the problem shows up.
After that, if a rock happens to be in the location of a brick when it is activated, or "put up", the rock will be inside the brick. This part I am fine with, as it will make the player think pretty heavily about what to do. Well, if I build the puzzle right.
However, the problem occurs when I approach the rock while it is inside the brick. Since the rock is set to activate on player touch, it will roll out of the brick, as shown below:
Any ideas as to how I can fix this in a relatively simple manner? I plan on making many puzzle rooms with this same mechanic, so if the mechanic is overly complex or hard to put into effect, it may be scrapped, as the work load and hassle won't be worth the effort. (I wouldn't be able to make sure the puzzle is loophole free and impossible to get stuck in, as I would end up spending too much time working on that one aspect of the puzzle.) But, it just depends. I would love to have an evented mechanic that I can easily copy and paste, but, if that's not possible, I understand.
Thank you in advance,
-pepper-