Adding an instance when mouse is pressed
in
Programming Questions
•
1 year ago
I'm at the very, very beginning of attempting to make a real-time multiplayer game with Processing and I need to be able to make a new building. I have a class for the building, but how do I make it so that a new instance is made under certain conditions (for example when the mouse is pressed)? My question isn't about the conditions but just about adding an object. I hope that makes sense... Thanks for any help!
1