Are you talking about one of those slider puzzles we used to get with a four by four (or so) grid with one open square? And you had to get all of the pieces into the right spot?
I am thinking you can event this.
Turn the player into a cursor.
Have the cursor which allows the puzzle pieces to move be above character.
When the character is above the piece you want to move, push a button.
There will only be one open spot so it will move into the only open spot.
The "scene" pieces will be just like NPCs except that they will be 32 by 32 tiles.
Could that work?
So your map would be four tiles by four tiles, with fifteen "map" characters on it, and one open square. (all filled in with grass or something.)
I've moved this thread to RGSS2 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
So like a player touch when you go on a tile set I'll need to put in in graphics I guess and player touch move some way? I can pick or something? Can you put a demo or something please? Thanks
Well, a demo is a little beyond my time limits right now, sorry - but I have to admit it is tempting =]
Step one - make a map of four by four tiles - I suggest a room with a four by four floor.
By the door to the room have one square with no NPC on it.
On all other squares, have an NPC whose graphic is on part of your whole image.
So to make your NPCs, you would make an image in a file which was 128 by 128. You would want one 32 by 32 square of it to be the part you will "skip" for the open slot. Then, for each 32 by 32 square in the image, make a character. (IOW make a file named $square1.png size 96 wide by 128 high and fill it with the first square in your image.) Then when you have fifteen squares, but the NPCs randomly around on the board. (Perhaps it would be nicer if you put them on the board in order, and moved them around to mix them up just to make sure you had a puzzle which you knew could be solved! But that is a bit more involved.)
Now the tricky part. Each NPC needs to move away from player when the little cursor is on top of it and you use a certain button. So when you enter the room, change actor graphic to some kind of small cursor like a blinking dot or something. Make the player's graphic priority change to "above player" so it will float like a butterfly. I guess now that I am thinking about it you might as well just make all of your NPCs priority "below player" instead.
And the hardest part - which I cannot playtest for you - will be eventing the movement of the NPCs. When the player moves over them, and you use the action button (or whatever) it will need to activate the switch of the NPC who is located in the same square as the player. There are tutorials which explain how to run parallel processes to determine this.
Then the event beneath you has a move route of "move away from player."
And then there will need to be a common event which checks the NPCs after every move to see if they are now in the correct places, using the same method as the parallel process above.
I know this sounds awful to do if you are unfamiliar with eventing, but I have to admit that this is a creative new puzzle idea - one I have not heard anyone discuss before - and I think you should either ask someone to help you get it done by continuing to request a demo here or by learning the steps yourself.
Keep at it! Good luck with your game!
I have thought of probably 3 different ways to make this puzzle, all without scripting. I'll see if I can make a tutorial for you sometime today 🙂
Thanks Shaz, you or the site moderator people can close the request now thanks! 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.