View Single Post
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 12-16-2014, 03:26 PM

Hi,

Great information and thinking outside the box!
My problem with the exercise is that any answer tends to obscure what the chapter is trying to show case. That of using lists and instructions. Can the objective be accomplished? Yes, this thread has talked about 3 ways to succeed
  1. Different lists for different kinds of objects
  2. Making the method "object aware."
  3. Using Poses to make the characters wave.

But at some point the main idea and implementation of a List becomes less and less front and center.

Mark

P.S. I have found over the years that many of Alice's "Quirks" were not quirks but the natural result of the rendering paradigm used to make the movie. If the object is not actively in a scene, the method I am waiting for might never be executed. The result is that situations like making an object invisible can cause unexpected side effects.

Quote:
Originally Posted by MrMoke View Post
A few of the important things I’ve learning over the last 47 years or so of programming is to master the language you are using, and use it creatively through experimentation.

One of the things that Alice2 objects have in common is the ability to use Poses that you have captured during the design phase of your project. In this instance, we have a fixed number of objects, so the objects and poses can be stored in “either Lists or Arrays” and they will work the same when referenced with a single index value.

Your job is to think beyond drag-and-drop, and instead build the project “Before” you start coding. If you were standing up and wanted to wave to someone, how many unique positions (aka: poses), including repeatable, would be needed? Now use your mental list of positions to build those poses into each character. The only thing finite here is the step count, not the poses, so the waves don’t have to look the same.

Once complete you can use loops to activate the poses on the items in the Object and Pose arrays. This can be done in straight-line code, or using mouse-click events where the object clicked is passed in as a parameter.

The attached demo is small example. Note that the setup time was much longer than the coding phase. My finished project is much more sophisticated. Have fun and remember that your C.O. might be watching


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote