OpenXcom Forum

Modding => Work In Progress => Topic started by: Nord on December 17, 2016, 12:01:57 pm

Title: TFTD movement types
Post by: Nord on December 17, 2016, 12:01:57 pm
Can someone describe tftd armor movement types? I see 0 - walking, 1 and 3 - swimming and walking both. But when i try to create floater-like unit, movement animation persist only on the ground. (When this unit swim - no animation) Thanks.
Title: Re: TFTD movement types
Post by: ohartenstein23 on December 17, 2016, 04:01:16 pm
Animations only happen on the ground or as a constant loop for drawing things like hallucinoids - if you look at floaters, their flying animation if just the sprite 'floating' from place to place. It's possible to do more with scripts in OXCE, but you'd have to check with Yankes on how they work.
Title: Re: TFTD movement types
Post by: Nord on December 17, 2016, 04:58:51 pm
- if you look at floaters, their flying animation if just the sprite 'floating' from place to place.
Exactly this effect i'm trying to reproduce in tftd. But how?
Title: Re: TFTD movement types
Post by: AndO3131 on December 17, 2016, 05:28:03 pm
Yoy can look at biodrone and prepare similar set of images.
Title: Re: TFTD movement types
Post by: ohartenstein23 on December 17, 2016, 05:39:24 pm
You probably need to set a different drawing routine for the sprite, one that includes the animation you're looking for.  You can find the list of drawingRoutines on the wiki: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Armor
Title: Re: TFTD movement types
Post by: Nord on December 17, 2016, 06:02:06 pm
Yes, and which of them is eight-sided animated flying? I see only one - exactly floater. (Biodrone is one-sided, as hallucinoid etc).
 And floater exist in xcom1, but similar animation routine in tftd seems not working.
Title: Re: TFTD movement types
Post by: ohartenstein23 on December 17, 2016, 06:23:13 pm
That's why I mentioned the scripts in OXCE - for example, Piratez has a parrot as a unit, but it doesn't keep flapping in air unless you use Yankes' scripts to keep it doing so.  The flying animations are otherwise pretty limited in xcom.
Title: Re: TFTD movement types
Post by: Nord on December 17, 2016, 06:44:06 pm
Perhaps i can not describe properly what i need... No, i do not need constant animation. I need animation during fly movement, as floater do.
Title: Re: TFTD movement types
Post by: ohartenstein23 on December 17, 2016, 07:09:08 pm
Floaters don't have any flying animation, their sprite just shifts from one tile to the other without changing unless it turns.  Their cape only flutters when moving on the ground, which is exactly the behavior you mentioned in your first post.  What you're looking for is a movement animation when going from one tile to another, but not when idle, right? I don't think that exists in drawingRoutines...
Title: Re: TFTD movement types
Post by: Nord on December 17, 2016, 07:54:33 pm
Floaters don't have any flying animation, their sprite just shifts from one tile to the other without changing unless it turns.  Their cape only flutters when moving on the ground, which is exactly the behavior you mentioned in your first post.
Ahh, that's why... Never noticed it. Thanks for explanation.