Returning to the Original State (cont.)
The first Else statement confirms that the mouse isnt located inside the box and thus we want to return all objects to their original state. If this is the case, then we have to take in account, if an object has a greater scale or alpha value than its original and if the vertical position is greater or smaller than the original, which is done in a loop. If the scale is greater than the original (100), we decrease the scale by 1. If the alpha value is greater than 50, we decrease it by 1 in the same way as with the scale. If the vertical position is greater than the original, we decrease it by 1 and on the other hand, if the vertical position is smaller than the original, we increase it by 1.
|» Level Advanced|
Rating: 8.97 Votes: 237
|The author wrote this tutorial to explain the infamous effect originally created by Joshua Davis of www.praystation.com. The tutorial was written with his personal permission and the source is simply a modification of the file available at PrayStation.com.|
|Download the files used in this tutorial.|
|Download (10 kb)|
|More help? Search our boards for quick answers!|