Today I'm working on collisions. That's when one object hits another. The thing is, I have about 110 objects. So I have to create a table or an array, or something like that. The table will keep track of every object so that they know when to disappear. But it's not that "simple." Some of the objects will also destroy one particular object. So each time this particular object gets hit, I need to deduct points until the object reaches critical mass and implodes.
[Apple Rant] Seriously, there's no simple graphics program included with the iMac? I gotta go use my PC to do graphics and then port them over? Is that what you're telling me?
Alas, poor Yorick, I have no idea what I'm doing. I really don't know if I need tables and arrays. I found some code that did what I wanted without the table. The code worked fine on it's own, but when I tried to plug it into my existing code ... it did not work (it was suppose to make all the objects remove themselves when they came in contact with the ground).
Will try again tomorrow.
No comments:
Post a Comment