Have three C# Class files one is for the player's sprite, another for the background, and one for the main logic. I want send a flag from the player's class file to the class file for my main logic. Then I want to send the flag from the main logic class file to the class for the background to update the background when the player reaches the edges of the screen. How would I do that?
I'm currently working on a Zelda clone in C#. I'm currently stuck, I want the background tiles to scroll when the player reaches the end of the screen. However, when I pass my variables across the Class files, the background doesn't change and neither do the values of the variables I passed.
I started this project as a final project for an intro to prog and logic class. I thought Zelda would be simple enough for me to be able to make the first dungeon. Unfortunately, I was only able to create a functional Link and load the overworld. I'm posting it here because I couldn't find a clone of Zelda where I could download the code from. I created a blog for its development here: http://tuniclegacy.blogspot.com/. There are source code comments, but they may not the best. The controls are W,S,A,D for movement and the Enter key to attack. Please feel free to either post or contact me on here or at email@example.com for your questions and comments.