The current topic for the week is collision detection.
This is an extremely simple process with the help of the tutorial. I only regret not being able to alter variables to an acceptable degree, but there aren't concrete variables to change. I expected to have lines and lines of code for every character on a particular frame, but it only takes ten or so lines of code on a single moving (movie clip) character.
The tutorial also broke the code down into separate functions, which is pretty nifty. Instead of copying and pasting, this tutorial allows the reader to fully understand the code he or she is using from the simplest function involved, to the exponentially more complex combined product.
http://www.kirupa.com/developer/actionscript/hittest.htm
Also, the finished product:
Well....
14 years ago
Nice post. Thanks for including the link of the tutorial you used. Someone else may find the information beneficial. I'm curious as to why you didn't post your team Flash file for this topic. Any thoughts?
ReplyDeleteI probably should go back and change that. I just felt the tutorial displayed the topic in a more concrete fashion at the time, but I should have also included the game file.
ReplyDelete