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
I've been adding all the values for each sprite and dividing it by the total number of sprites, is there anyway to do that? (Ex: for each sprite add sprite.size to Globalvariable then divide by the number of sprites is what I've been doing but is there some sort of function I can use instead?)
Create a Family with all the sprites. Then run a System > For Each loop SpriteFamily. i to SpriteFamily.Count (I think) GlobalVar + SpriteFamily.Size then divide the var by SpriteFamily.Count.
That's what I've been doing, I mean to ask is there any other way to do it? Like maybe some kind of function or something? I don't think there would be but I thought I'd ask
Develop games in your browser. Powerful, performant & highly capable.
Well if there's is I haven't found it so I guess I'll just keep doing what I've been doing, it's just kind of annoying because with what I'm working on I'll have to do that a lot
And why would that be an issue?
Three lines, isn't that much?
I mean it isn't much I dunno I just thought there'd be some other way but there isn't so it's fine