I am relatively new to ACC and flash punk, and i have started to make a 2D strategy shooter. I’m making a phase where you place your units, by using a public variable to track the mouse and the mouse clicks, but, the variable cannot be accessed over classes. i get the error of 8 Error: Access of undefined property this is the code I’m using
public class GameWorld extends World
{
public var DrawLine:int = 0; public var FriendlyFleaX:int = FP.world.mouseX public var FriendlyFleaY:int = FP.world.mouseY public function GameWorld()
and to access
x = FriendlyFleaX y = FriendlyFleaY
any help is appreciated.