Projectile animation

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Wussel
Posts: 624
Joined: July 28th, 2012, 5:58 am

Projectile animation

Post by Wussel »

I am looking for a projectile animation code which flips left right but not up down. How do I do that?
User avatar
Vyncyn
Forum Regular
Posts: 515
Joined: April 6th, 2013, 5:51 pm

Re: Projectile animation

Post by Vyncyn »

If I understand you right, you could just make two animations and filter one for s,se,sw and the other one for n,ne,nw. You'll have to make a horizontal flipped image of the projectile for the northern animations.
User avatar
Celtic_Minstrel
Developer
Posts: 2222
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: Projectile animation

Post by Celtic_Minstrel »

There are auto_hflip and auto_vflip flags in the frame, if I recall correctly. If that's not what you need, you can probably do as Vyncyn described with the ~FL() IPF.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
Wussel
Posts: 624
Joined: July 28th, 2012, 5:58 am

Re: Projectile animation

Post by Wussel »

I copied the wail attack animation. Which is basically what Vyncyn said. That switch of auto flipping sounds neat too. That workaround from mainline looks a bit silly. Flipping the not to be flipped version manually so that they get back by auto flipping. lol
Post Reply