Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
is it okay to get rid of:
float x; // X co-ordinate (top left point)
float y; // Y co-ordinate (top left point)
float w; // Width
float h; // Height
float angle; // Rotation angle
float displayangle; // Actual displayed angle
float HotSpotX; // Offset from the top left point
float HotSpotY; // Offset from the top left point
float HotSpotAngle; // Hotspot in polar form
if an object isn't going to be drawn at all?
or will it cause problems
I just figured it might increase the number of objects I can have if the struct was significantly smaller
No you can't, and the saving is literally a few bytes anyway, so it wouldn't be worth it.
Develop games in your browser. Powerful, performant & highly capable.
If you change that struct you will change all the memory offsets used by the runtime and your plugin will completely break, not to mention the fact that the memory saving would be so tiny, you probably couldn't even measure a difference.
Yeah, the memory offsetting would break things.