Forum Topic: Simple actionscript help

(240 views • 1 reply)

This topic is 1 page long.

<< < > >>
Questioning

Topaz989

Reply To Post Reply & Quote

Posted at: 3/1/06 05:25 PM

Topaz989 FAB LEVEL 17

Sign-Up: 12/11/04

Posts: 117

I'm trying to do the old movie effect like on on this tutorial. However, he only explains how to do the burnt marks and not the random appearing line. I've tried applying and adjusting the actionscript of the burnt marks, but the line just goes all over the place.

If you want a demonstration of what I am looking for, look at the play screen of the Tutorial movie.

Old Movie Effect Tutorial


None

zuperxtreme

Reply To Post Reply & Quote

Posted at: 3/1/06 06:33 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,569

onenterFrame = function(){
xx=Math.random()*widthofyourstage
yy=Math.random()*heightofyourstage
line_mc._ x=xx;
line_mc._y=yy;
}

what this does it randomizes xx everyframe to the width of your stage
it also ranomizes yy to the height of the stage
then it moves the line mc to the xx and the yy
causing the line mc to appear at different places on screen..

try modifying it to make it change not in every frame
and make more things move like a scratch for example

p.s. I added two errors for no copy & paste :D if you cant figure out the errors
look up some general AS tuts

good luck =)


All times are Eastern Standard Time (GMT -5) | Current Time: 06:34 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!