Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Categories Building a Tsunami
Author: Morten Barslund | Website: http://www.hhbk.subnet.dk/GotCha.html |

 
Page 5
«prev 1 2 3 4 5 6 7 8 9 10 next»

Building a Tsunami

In the first case, we have the following code:

If (mouseposX>= boundleft and  mouseposX <= boundright and mouseposY>= boundtop and  mouseposY <= boundbottom)
    Loop While (i <= endnum)
        Set Variable: "myDif" = (EVAL("textY" & i) ) - (mouseposY-boundtop)
        Comment: percentage increase
        Set Variable: "scaleAmount" = 250 - ((myDif*myDif) /16)
        Set Variable: "alphaAmount" = 100 - ((myDif*myDif) / 6)
        If (scaleAmount <100)
            Set Variable: "scaleAmount" = 100
        End If
        If (alphaAmount <50)
            Set Variable: "alphaAmount" = 50
        End If
        Set Property ("text" & i, X Scale) = scaleAmount
        Set Property ("text" & i, Y Scale) = scaleAmount
        Set Property ("text" & i, Alpha) = alphaAmount
        Set Variable: "i" = i + 1
    End Loop
    Comment: *** add up total Y space filled by text ***
    Loop While (m <= endnum - 1)
        Set Variable: "filledSpace" = filledSpace + GetProperty ( "text" & m, _height)
        Set Variable: "m" = m + 1
    End Loop
    Comment: *** find total Y space not filled by text***
    Set Variable: "totalheight" = GetProperty ( "text" & endnum, _y) - GetProperty ( "text" & startnum, _y)
    Set Variable: "gapSpace" = totalheight - filledSpace
    Set Variable: "avgDistance" = gapSpace / numberofitems
    Set Variable: "m" = startnum + 1
    Loop While (m <= endnum - 1)
        Set Property ("text" & m, Y Position) = (GetProperty ( "text" & (m-1), _y) + GetProperty ( "text" & (m-1), _height)) + avgdistance
        Set Variable: "m" = m + 1
    End Loop

«prev 1 2 3 4 5 6 7 8 9 10 next»

» Level Advanced

Added: : 2000-12-27
Rating: 8.84 Votes: 236
Hits: 1923
» Author
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
Download the files used in this tutorial.
Download (10 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments