Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hey I'm doing game development in school and I need to make a game on Construct 3. I need help with the coding. I been trying to scripted a code that gets the player to the next stage by opening a door by a key but so far my code seems to not be working. I be thankful for any help |
||||
|
Try to ask help in Construct 3 forums ![]() |
||||
|
You asking questions in the wrong forum. Only Coppercube question only here. |
||||
|
You can use variables for that, you can check the collision or proximitt with the key, if player is in proximitt of the key, then set the variable for example "key_collected" to true. And you can check that key variable value on proximity or collision with the door. For example when player is in proximity with door check if a variable has value "key_collected" is equal to true or not. If it is true then open the door and change the level otherwise do something else like show him a text box that reads, "you need to get a key to unlock the door". Above pseudocode will work with any game engine or any programming language. So it doesn't matter if you are a construct 3 user or Coppercube user or unreal or unity user. Help will always be given at Hogwarts to those who ask for it. ![]() |
||||
|
Thanks, It helped me to create doors in my game. |
|