Author Topic: [Answered] How to implement active animations on units in game play?  (Read 589 times)

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
Experiments and hack for creations specific weapon

Yankes,

Wow, that's pretty cool!  look forward to seeing it in my on game play :)

Do you by change have an recommendations on how to implement active animations on players or enemies in game play?  A specific example is the purple fade in fade out glow of the aliens in X-Com Files?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: How to implement active animations on units in game play?
« Reply #1 on: December 15, 2023, 11:09:27 pm »
What you mean "recommendations"? For example you can look for mod it self and its implementation of this effects.
Most cases this is done by shifting brightness of drawn pixel to simulate pulsating light, there is helper function that get
frame number and calculate square or saw wave shape and this value is used to bump each pixel light.
probably some where here on forums are my initial examples of this logic (but some cases in older version of script).