Hello there,
so I've tried for some hours to make a slide puzzle much like they exist for the clue scrolls in old school runescape.
What I've tried:
I used a 5x5 area full of events. Their priority was "same as characters". The area was surrounded by walls. In the lower right corner there was no event. Outside of the area there are 4 arrows which the player can activate. An arrow would tell the events on the 5x5 area to move to the right and to skip the movement if it's not possible. So in theory the empty spot would get filled by the one event that can move there and the rest does nothing. This worked in about 50% of the cases. The problem is that whenever the movement input for the events was so that it first processes the event that is supposed to move and THEN processes an event that is not supposed to move, but is now able to move because the event that is supposed to move left it's spot so it can follow. The result was that the whole row moved. I tried ot think of a different solution but it didn't work. I hope my explanation of the problem makes sense.
The game does not have to check if what the player did is correct. The idea is that if the player manages to put together the image correctly, the image will show an important hint for a different puzzle. I can imagine that there are ways to make this puzzle work that are extremely complex. I wouldn't even mind that as long as it works.
Does anybody have an idea how to make it work?
so I've tried for some hours to make a slide puzzle much like they exist for the clue scrolls in old school runescape.
What I've tried:
I used a 5x5 area full of events. Their priority was "same as characters". The area was surrounded by walls. In the lower right corner there was no event. Outside of the area there are 4 arrows which the player can activate. An arrow would tell the events on the 5x5 area to move to the right and to skip the movement if it's not possible. So in theory the empty spot would get filled by the one event that can move there and the rest does nothing. This worked in about 50% of the cases. The problem is that whenever the movement input for the events was so that it first processes the event that is supposed to move and THEN processes an event that is not supposed to move, but is now able to move because the event that is supposed to move left it's spot so it can follow. The result was that the whole row moved. I tried ot think of a different solution but it didn't work. I hope my explanation of the problem makes sense.
The game does not have to check if what the player did is correct. The idea is that if the player manages to put together the image correctly, the image will show an important hint for a different puzzle. I can imagine that there are ways to make this puzzle work that are extremely complex. I wouldn't even mind that as long as it works.
Does anybody have an idea how to make it work?