This site requires JavaScript, please enable it in your browser!
Greenfoot back
Razzo
Razzo wrote ...

2012/1/22

Lots of Entitys but No Lag?

Razzo Razzo

2012/1/22

#
On my Game http://www.greenfoot.org/scenarios/4078 How could I make it so when you open the Green Boxes (Bit Boxes) The 1's and 0's Don't lag the game, But I still want there to be lots of them .. D:
Morran Morran

2012/1/23

#
Maybe you could have multiple 1's and 0's on the same image? Like maybe a 2X2 grid of 1's and 0's? That way you can have a large amount of numbers but a smaller number of Actors. The scenario is nice so far though!
danpost danpost

2012/1/24

#
You could also see if creating the arrays of bits at start-up (or before the level they are used in) and adding them to the world when neccessary would help (keep intersecting code in player class, so bits can be without an act() method).
Morran Morran

2012/1/26

#
It seems the most lag is when the bits are getting to where they need to go. If you could simplify the bits' "get to bottom of screen" method, that might also help.
You need to login to post a reply.