Hello Guest

Author Topic: Tilemap Animation on command  (Read 5845 times)

willeml85

  • Newbie
  • *
  • Posts: 9
    • View Profile
Tilemap Animation on command
« on: January 11, 2013, 12:03:02 am »
Hello i was hoping someone could help me with a issue i was having,
as i am trying to get sprite animations running on command in my tilemap.
Namely lava flowing over my rocky tiles, i put my animated sprite prefab in the Tile's data prefab slot
and when i have my sprite animation set to (play automatically) it runs.
But my question is, is there a way to have the animation play by using a command in script?

Thank you for your time

willeml85

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Tilemap Animation on command
« Reply #1 on: January 12, 2013, 10:23:57 am »
Silly me, i got this to work by slapping a script on the sprite prefab telling it to run, though i do wonder if it's optimized to have a script per animated tile..

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tilemap Animation on command
« Reply #2 on: January 12, 2013, 01:34:27 pm »
Its not as optimized as it could be, but how many animated sprites do you have like this?

willeml85

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Tilemap Animation on command
« Reply #3 on: January 12, 2013, 03:31:10 pm »
200 tiles, works fine ..though have not tested on mobile.

willeml85

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Tilemap Animation on command
« Reply #4 on: January 12, 2013, 09:49:44 pm »
Toolkit 2d is simply the best toolkit for 2d in unity as i have tried all the other kits and they ended up not being in high enough quality and support. And having easy animated tiles would really be a sweet addition to the kit. It would be like a more complete solution than it already is.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tilemap Animation on command
« Reply #5 on: January 13, 2013, 02:19:34 am »
Animated tiles isn't there because there isn't one general solution which will work well in every case. Solutions seem to be very game specific...

I'll investigate further in the next tilemap update.

willeml85

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Tilemap Animation on command
« Reply #6 on: January 13, 2013, 08:54:12 pm »
It seems like quite the undertaking to develop new software, thank you for your work.