Difference between revisions of "Talk:Bookclick.as"
From Organic Design wiki
(You need to reduce all folds to one function first) |
(animation must be done from per-frame functions) |
||
Line 1: | Line 1: | ||
You need to reduce all folds to one function first, before any "playing animation" stuff because the animation sequences need to be send a sequence of x,y coordinates to the fold function, and you don't want your sequence-playing function to have to deal conditionally with four fold functions --[[User:Nad|Nad]] 10:26, 9 Dec 2006 (NZDT) | You need to reduce all folds to one function first, before any "playing animation" stuff because the animation sequences need to be send a sequence of x,y coordinates to the fold function, and you don't want your sequence-playing function to have to deal conditionally with four fold functions --[[User:Nad|Nad]] 10:26, 9 Dec 2006 (NZDT) | ||
+ | :You can't just do a for loop around the drawing routine, you need to make the fold-function work wrt to passed coords instead of mouse, then make your mouse-events and per-frame animation functions call the fold function --[[User:Nad|Nad]] 10:30, 9 Dec 2006 (NZDT) |
Revision as of 21:30, 8 December 2006
You need to reduce all folds to one function first, before any "playing animation" stuff because the animation sequences need to be send a sequence of x,y coordinates to the fold function, and you don't want your sequence-playing function to have to deal conditionally with four fold functions --Nad 10:26, 9 Dec 2006 (NZDT)
- You can't just do a for loop around the drawing routine, you need to make the fold-function work wrt to passed coords instead of mouse, then make your mouse-events and per-frame animation functions call the fold function --Nad 10:30, 9 Dec 2006 (NZDT)