Random Movement Tutorial

  • solaris
  • Student
  • Student
  • User avatar
  • Posts: 83
  • Loc: NC

Post 3+ Months Ago

hehehe. Thought I would get things going again with a tutorial on random movement.

http://www.solarisdesigns.net/crap/random
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Well at least you credited the original source :roll:

You forgot which version of Flash it was for. Sbeener wrote 2 versions of the script, one works in Flash 5, the other works in Flash MX. Your tutorial uses the Flash MX one ;)

Your "Get the script and an explanation here" link just leads to the same page you are on, so the only way to get the full script is to download the .fla (or get it from kirupas tutorial :eating: )
  • solaris
  • Student
  • Student
  • User avatar
  • Posts: 83
  • Loc: NC

Post 3+ Months Ago

oops , musta overwritten the page, il upload the script page, sorry :)

(ok just fixed) should work now ;)
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Quote:
This script uses arrays to define the motion you see. Math.random does all the work. It chooses different positions each time it changes. The arrays also choose random speed at which to move. This is only one of the millions of uses random scripting offers.


Few problems with the explanation:

1) There isn't a single array used in the script

2) Math.random() doesn't do all the work, it just chooses the new (x,y) coords to move to and the speed it should take to get there.
  • solaris
  • Student
  • Student
  • User avatar
  • Posts: 83
  • Loc: NC

Post 3+ Months Ago

sorry bout that, i let a frend type that up because i didnt have enough time to. :oops:
  • toast
  • Born
  • Born
  • toast
  • Posts: 1

Post 3+ Months Ago

I know this is old, but I'm trying to get the mc's to rotate according to their movement?.....any ideas???

thanks.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 12 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.