How to make an enter building button in a 2D game?
Hello, I'm extremely new to coding and right now I'm making my very first game. The game right now is just a basic 2D side scroller type, and I would like the character to enter some buildings. How would I have it so whenever the 2D character walks in front of a door, they have an option to press the up arrow key to enter the room? The same for leaving the room and going back "outside" as well. Thanks! I'd appreciate if the answers were detailed and easy to understand (since I literally know next to nothing about coding). I know this is a lot to as for, but I'd appreciate some help! Thank you.
I would suggest doing some tutorials in general if you're new. This is a pretty easy task though so its a good place to start. Glad your not trying to make the next biggest $$anonymous$$$$anonymous$$O lol.
There are a number of steps though to do it. What you need to look for is tutorials on Trigger2D, Scene changing, and general input.
There are literally tens of thousands of them out there, so you'll eventually find some that are relevant to what you are trying to achieve. Personally I would start with Brackys https://www.youtube.com/user/Brackeys he is really good for beginners.