How do I

Get help using Construct 2

Post » Wed Sep 09, 2015 11:52 am

HI

can anyone please point me in the right direction, i am trying to make an escape the room game.
would like to find out how i go about making a code puzzle. eg: somewhere in a level is a code: 1234, and in a few levels into the game there is a vault that needs to be opened with the code:1234.
any ideas on how to do this?
B
6
S
1
Posts: 9
Reputation: 428

Post » Wed Sep 09, 2015 12:55 pm

You are very vague with the explanation of what you want to do here so I will do my best to try and help you.

You could put like a barrel or something on the ground and underneath it you could put "1234". Then you can have the player able to push the barrel and reveal the code.

HOW TO DO THIS:
. First add text to your layout (Double click white area and press add text)
. Next set the text to what you want it to say. (Click on the text and under properties in the side menus type in "1234")
. Create a sprite for the object that you want to hide the text behind and place it on top of the text.
. Now you need to do the code to move the barrel.
- If Player.x < Barrel.x
If Player is overlapping Barrel
Barrel.x = Barrel.x + 1

- If Player.x > Barrel.x
If Player is overlapping Barrel
Barrel.x = Barrel.x - 1

This will cause the barrel to move over by 1 pixel everytime the player is overlapping it.
B
5
S
1
Posts: 24
Reputation: 650

Post » Wed Sep 09, 2015 2:06 pm

thanks uyu34, this did help, sorry for being so vauge. i want to know how to how to do the code on the vault , where the player must put the code into the vault to open it.
B
6
S
1
Posts: 9
Reputation: 428


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests