Author Topic: TFTD movement types  (Read 5146 times)

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
TFTD movement types
« 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.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: TFTD movement types
« Reply #1 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.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: TFTD movement types
« Reply #2 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?

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: TFTD movement types
« Reply #3 on: December 17, 2016, 05:28:03 pm »
Yoy can look at biodrone and prepare similar set of images.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: TFTD movement types
« Reply #4 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

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: TFTD movement types
« Reply #5 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.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: TFTD movement types
« Reply #6 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.

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: TFTD movement types
« Reply #7 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.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: TFTD movement types
« Reply #8 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...

Offline Nord

  • Commander
  • *****
  • Posts: 1746
  • The Gate is open.
    • View Profile
Re: TFTD movement types
« Reply #9 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.