LightningAngleInit Actionscript
Table of contents | Previous document | Download LightningAngleInit.as | SWF!T Homepage RCSfile: LightningAngleInit.as,v Revision: 1.2 Date: 2003/02/14 03:44:59
Copyright 2003 Orgdot AS. All Rights Reserved. http://dev.swfit.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Init script for the angled lightning.
author Olaf Havnes
version Revision: 1.2 Date: 2003/02/14 03:44:59
since SWFIT1.0
Hide the raw material
right._visible = false;
left._visible = false;
segs = 2 * 3;
Lightning data
height_l = 4;
width_l = 3;
pause = 0;
frame_pause = 2;
glow_counter = 0;
glow_life = 5;
Loop up a table for pre-generated values
i = 0;
while (i < segs)
{
set ("right_" add i, false);
i++;
}
Initiate values
tot_lightning = 0;
num_lightning = 0;
top_c = 0;
bot_c = 0;
|
|