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.
Develop games in your browser. Powerful, performant & highly capable.
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
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