Sunday, 16 February 2014

16 February 2014 Production Diary

Finally, I able to randomly select object from the object Array to move to specific location and remove the selected object from the Array so that it won't be selected again, with the help of my AS3 coding idol, YiWei.

I also able to select random frame within a movie clip and add it to the stage.

To prevent repeating jump to avoid slow down when hit the obstacles, I have make the character unable to jump again when hit the obstacles.

However, if using the method suggested by YiWei, the hitTestObject function do not work because I am using the object Array to check the collision, when the selected object move the specific location and removed from the array, the hitTestObject function can not work on the selected object again as it already removed from the array.

References:


Republicofcode.com. 2009. AS3: Arrays. [online] Available at: http://www.republicofcode.com/tutorials/flash/as3arrays/ [Accessed: 16 Feb 2014].
Yanez, C. 2010. Quick Tip: Get a Random Number Within a Specified Range Using AS3 - Tuts+ Code Tutorial. [online] Available at: http://code.tutsplus.com/tutorials/quick-tip-get-a-random-number-within-a-specified-range-using-as3--active-3142 [Accessed: 16 Feb 2014].

No comments:

Post a Comment