Right now I'm working on a small game where I can shoot projectiles out of my actor to destroy other actors. I originally tried to use addObject(new (nameofclass), this.x, this.y) but it says I can't do that (method can't find symbol (nameofclass), int, int). So my other other idea was to create a method in my world and call that method whenever I wanted to spawn thy bullet but getworld() gets the world class not my actual world. So I'm not sure what to do.
Clearly I'm doing it wrong, what should I be doing?
Edit: To specify my main goal is to spawn the projectile on the player.
