Combination Lock Puzzle
Fal01
Member Posts: 460
Hi all,
I'm trying to make a point and click adventure and need some advice on the best way to make a combination lock puzzle,
like you might find on a briefcase.
More from a designing point of view rather than a coding one.
Any help greatly appreciated.
I'm trying to make a point and click adventure and need some advice on the best way to make a combination lock puzzle,
like you might find on a briefcase.
More from a designing point of view rather than a coding one.
Any help greatly appreciated.
It’s not a bug – it’s an undocumented feature
Best Answer
-
firemaplegames Posts: 3,211Not exactly sure what you are asking, but you'll want to make the numbers as a single vertical strip, with the first and last number repeated, like this:
0
4
3
2
1
0
4
Each number should occupy the same height in pixels, let's say 100px, so this strip will need to be 700px tall.
If you tap on the top of the lock, the strip of numbers moves up 100px, if you tap on the bottom of the lock, the number strip moves down 100px. When the Y of the number strip hits one of the repeated numbers, reset its position.
That will give the illusion that the numbers are on a cylinder.
You'll then need to place some artwork over the top and bottom of the strip to hide the fact that it is a strip of numbers sliding up and down.
Finally, I would place shadows and a highlight on top of everything to complete the effect.
Does that make sense?
Joe
Answers
That's exactly what I wanted to know!
And from the master of point and clicks! ^:)^
It’s not a bug – it’s an undocumented feature