Creating new objects per key event
Hey, I'm trying to make a basic Map Editor and was wondering how to create multiple image objects based on a key event. In the program right now, the player moves around. When they hit enter, an image is placed at those coordinates. When the player hits enter again, the image moves to where ever the player is. I was wondering how I could make an Image object per event so that the player will be able to place multiple images all over the frame.
Re: Creating new objects per key event
You'd do the same thing, only instead of drawing a single image, you'd have a List of images.
Re: Creating new objects per key event
Oh thanks! I never though of that. It works perfectly now!