Hi. This is a bit of a beginner question, but I'm asking because I cannot find a clear answer through tutorials or open source projects I sift through.
The position of one of my game's objects relies on the position of another game object, what is the easiest way to access the x of that object in a different flxsprite class? [sprite].x gives me an error, and unless something is seriously wrong with my project, this is to be expected. My current solution is to make a public float in the second flxsprite class, and set it to the x of the first flxsprite in the playstate. I assume that there must be a more convenient solution.