Ah, thank you. I had forgot to use .get to access the components. That was the problem.
Type: Posts; User: Gravity Games
Ah, thank you. I had forgot to use .get to access the components. That was the problem.
Oh, I'm already doing that (I had no problem when drawing one object), the problem is defining the individual objects of the arraylist. For example:
The array list contains (Object 1, object 2,...
How would I do that? Level.java's draw method is called by a JPanel if thats what you mean.
I figured out I need an arraylist to create more than one of the same object. Unfortunately, I can't figure out how to call the render method on each individual object. Here's what I'm got:
...
For some reason, I'm having a hard time drawing objects on screen. Here's my code:
Level.java
package com.gravitygamesinteractive.kylethecaiman;
import java.awt.*;
import java.util.*;...