PDA

View Full Version : Help with continuous movement



gwtiburon
February 21st, 2005, 07:13 PM
Hi,

I am new to actionscripting, and was wondering if anyone could help me. I would like to have objects scroll from left to right at random speeds (not random position though). I do not want them to be random scale or resize up or down according to cursor movement....basically just left to right at variable speeds, that's it.

Problem is, I have been trying to take out parts of the code, but can't get them to move at all now. Can anyone help me out with this please?

thanks for any tips

dreeft
February 21st, 2005, 07:48 PM
Set a random number, change the x values by that random number. Loop.

gwtiburon
February 21st, 2005, 07:58 PM
Sorry, but which part of the script gets a random number?
"this._x = -10+Math.random() "
or
"this._xscale = this._yscale...."

Also, what parts of the script can I take out? I just want the objects to drift horizontally and not scale up or down at all according to cursor movement.

thanks

gwtiburon
February 22nd, 2005, 07:47 PM
anyone? This is driving me crazy
thanks in advance!