[4.5.6] user text/number input

aimsees

New member
Hey guys,

I'm pretty new to Nesmaker but am really enjoying it so far!I would love to make an escape-room like game and for that to work i need some kind of mechanism where the user can input some code (4 digit) and if they have entered the right code a door opens.
I found some tutorials on how to open a door when talking to an NPC which are a great help but I'm having trouble connecting this to input of a correct code.
Two things i could use tips on:
1. Is it possible to have a way for the user to input a 4 digit code
2. if yes, how do i combine this with a door that opens on a correct code

any help would be greatly appreciated!
 

Jonny

Well-known member
I'm wanting to do something similar too for 4 digit save codes. I have a very vague idea but still trying to figure out the best way to begin.

My first thought was setting up 4 user variable bytes for each digit, with only 8 number options for each. I don't know if that's the most efficient way to do it but all I can think of with limited knowledge. I'd guess maybe not.

Then I was going to try and make a modified warp tile script that runs checks for which bits are set for those 4 user variables.

Also, there would also need to be a way to save those selections into memory with a UI.

I'm sure if must have been done with NesMaker but I can't find anything when searching...

EDIT...

I found THIS but it's about 4.1 I'm reading though at the moment.
 
Last edited:
Top Bottom