Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
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
Develop games in your browser. Powerful, performant & highly capable.
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.
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.