Freezing problem: How can i get the whole screen filled with spawned actors
kickshawstudios
Member Posts: 13
I have 2 actors (32 x 32 pix) and portrait screen:
At the start i spawn 1 actor (position X160 Y 20), by the click of the mouse this actor is moved by the action change velocity uppward. When this actor reaches top of the screen, and when it colides with wall, or if it reaches another non movable actor (1or2) it transforms to the copy of actor 1 or 2 with disabled option movable. At this moment new random actor is spawned (position X160 Y 20), and then the whole proces strats from the beginning.
My problem is the following:
It all works well for a period of time, but then it all freezes. I manage to activate the whole mentioned proces max 20 times. How can i get the whole proces to be repeated until the whole screen is filled with actors???
At the start i spawn 1 actor (position X160 Y 20), by the click of the mouse this actor is moved by the action change velocity uppward. When this actor reaches top of the screen, and when it colides with wall, or if it reaches another non movable actor (1or2) it transforms to the copy of actor 1 or 2 with disabled option movable. At this moment new random actor is spawned (position X160 Y 20), and then the whole proces strats from the beginning.
My problem is the following:
It all works well for a period of time, but then it all freezes. I manage to activate the whole mentioned proces max 20 times. How can i get the whole proces to be repeated until the whole screen is filled with actors???
Comments