UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2) IP: 64.81.113.168 URI: http://wesnoth.slack.it/?AnimationWML - - - - - Index: AnimationWML =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/AnimationWML,v retrieving revision 1.1 diff -u -r1.1 AnimationWML --- AnimationWML 3 Jul 2005 16:33:52 -0000 1.1 +++ AnimationWML 5 Jul 2005 16:23:15 -0000 @@ -13,9 +13,11 @@ All times (see //begin//, //end//, //time//) are measured in milliseconds, or 1000ths of seconds. -Attack times and defense times are measured simultaneously, -so times must be globally consistent. -In Wesnoth, 0 represents the "impact moment". +Unit movement is automatically animated based on these times; +the attacking unit or missile begins in the center of the hex at the lowest //begin// time, +then slides continuously to the center of the defender's hex, which it reaches at time=0. +If the attack is short-range, +the unit will then slide continuously back onto its own hex until the highest //end// time. In WML animations are made using the ||[frame]|| tag. It describes one frame of an animation. @@ -28,7 +30,8 @@ based on the time between //begin// and //end//. It is recommended that you allow for at least 50 time units per image; i.e. //end// - //beginning// > 50 * number of halos. -//halo// is generally used only for long-range attack animations. +//halo// is generally used only for long-range attack animations +(both [frame] and [missile_frame]). * //halo_x//,//halo_y// pixel offset between the center of the //halo// images and the center of the unit. @@ -48,7 +51,7 @@ See also AbilitiesWML. * ||[teleport_anim]|| describes an animation for when this unit teleports. * ||[frame]|| see ||[frame]|| above. - The frames before time 0 are displayed and the original location; + The frames before time 0 are displayed at the original location; the ones after are displayed at the new location. * //image_defensive// default for //image_defensive_long// and //image_defensive_short//. @@ -75,10 +78,11 @@ See ||[frame]|| above. The following display tags are recognized for [attack]: -* ||[frame]|| attack animation. - See ||[frame]|| above. +* ||[frame]|| unit's attack animation. +For melee attacks (||range=short||), this animation is moved toward the enemy; +otherwise it is stationary. See ||[frame]|| above for syntax. * ||[missile_frame]|| missile's animation during the attack. -Usually used for ranged attacks (||range=long||). +Only valid for ranged attacks (||range=long||). * //begin//,//end//,//halo//,//halo_x//,//halo_y// same as in ||[frame]|| above. * //image// the image to display when the unit is attacking orthogonally. * //image_diagonal// the image to display if the unit is attacking diagonally.
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
