View Single Post
Revised version
todd0312's Avatar
Status: Offline
Posts: 35
Join Date: Sep 2011
Default Revised version - 11-23-2011, 05:31 AM

Up early trying to figure this thing out so I can move on to my final project.

I have attached a revised version of the game whose code is a bit easier to read. I have given each torus a separate method (one for each torus in the array), rather than having the code for all in one method.

Rather than having the method statements in nested "do together" blocks for each loop, I have their methods grouped together in one "do together" block, with new rings falling according to conditions set by the score of the game (the higher the score, the more rings are passed from the array).

So - it doesn't look like the nested "do together" blocks was the issue. I am still having issues losing the ability to use the mouse to move the cone. It seems intermittent. Sometimes I can move it with the mouse when the toruses are falling, others not. Sometimes I can move it at the opening of the game, etc. etc.

Hopefully, this version will be less tortuous (maybe torture) to read than the first version.

This thing is driving me bananas.

I have tried to get the same effect using the index to iterate through the array, as was described in the previous post, but I can't seem to figure that out. The only way I've been able to do it is by creating methods for particular items from the array (item 0, 1, 2, 3, 4).

Any advice greatly appreciated. My coding abilities, as of now - are - null. It should be easy enough to follow, though.


Attached Files
File Type: a2w torus catch game.vers.2.a2w (2.84 MB, 9 views)
Reply With Quote