Tag Info

New answers tagged

0

Before you read the code provided make sure you understand the pseudo code. // Assumptions: // Appliance objects provide the turnOn() function. // We have a collection of appliances we can access somehow. Pseudocode: // Constructor // Gather our appliances... // Kickoff the randomized start function // Randomized Start Function // Start a ...


0

While it's certainly possible to implement the animation yourself (see Jon's answer), I'd suggest to use a tweening library for that. There are lots of AS3 tweening libraries available. Personally I used the GreenSock Tweening library a lot. Several AS3 game frameworks (such as Starling or Flashpunk) already have tweening implemented.


0

You are wanting to "lerp" between two Vectors, although I cannot tell you how to do it in AS3. The position will be based on a start-point, an end-point, and a % between the two. The % is usually a value of accumulatedAnimationTime divided by totalAnimationTime. You could also use a multiple of the % to spin the cards as they move into place, etc. (in ...



Top 50 recent answers are included