Hi guys, I have a question...
I'm working on a project, and I'm trying to cut back on sprites as much as possible to make the project smaller and faster, then cloning what sprites there are (i'm in Panther) allowing them to act as more than one sprite until they're not needed. I have found this to be a very sucessfull technique, though a little harder to code.
Now, I have an area with 42 spaces for a maximum of 42 items. I initially had one sprite that cloned itself 42 times to fit into and meet the needs of every space at once. However, it took quite a while to generate the 42 clones (15 seconds or so) and also slowed the project down quite a bit, especially when you pressed stop and the clones automatically deleted themselves.
I have a few alternative coding methods and I'd like to hear others or suggestions for which is best for this situation, discussions often help find the best solution, discussions have shown ;P
♦ Create 42 permenant sprites (I don't like this one, too many sprites
)
♦create 6 sprites (one for each row of 7 spaces) and let them move around on their line, changing 7 spaces to the correct items, jumping back and forth.
♦ create one sprite that moves over every one of the 42 squares as they are needed (this would cause a loading time I'm hoping to avoid)
Input is greatfully recieved!
Sparks
Offline
I would make 1 sprite that clones itself 6 times and each takes a row.
Offline