Hello, I am trying to make a simple spawn method that includes the class in the parameters.
I'm not really sure how to specify it though.
It would go something like:
What goes in parameter name, or how can I modify it to work.
public void spawn([parameter name] [actor name],int x, int y) { addObject (new [actor name](), x, y); addObject (new flash(), x, y); }