Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH:bouncing ball scripting.... |
From: | Ilia Pasymansky |
Date: | Thu, 27 Jul 2000 05:58:58 +0100 |
Hi!
trying to write simple bouncing ball script here...
can't get it work..
1st frame
Set Variable: "minloch" = 0
Set Variable: "maxloch" = 300
Set Variable: "minlocv" = 0
Set Variable: "maxlocv" = 70
Set Variable: "mypointh" = random(5)+1
Set Variable: "mypointv" = random(5)+1
2nd frame
Set Property ("/mytarget", X Position) = GetProperty (/mytarget,
_x )+mypointh
// same for Yposition
Go to Next Frame
Play
4th frame
If (GetProperty (mytarget, _x ) >= maxloch or GetProperty ( mytarget, _x )
<= minloch)
Set Variable: "mypointh" = -mypointh
Set Variable: "mypointv" = -mypointv
End If
Go to and Play (2)
---------------
variables explanation.......
maxloch--maximum it can go horisontal
maxlocv--maximum it can go vertical
minloch--minimum..................
minlocv--................
mypointh-- by how many points H location will be changed
mypointv-- by how many points V location will be changed
what i am doing wrong..??
Thank you
Ilia
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]