Page 1 of 1

Question: Are Animated Tiles Possible?

PostPosted: Tuesday, 26th March 2019, 14:50
by MisterPersonMan
Pretty simple question, so I don't think I really need to explain. Things like idle animations would be nice, but mainly I'm asking for things like Makhleb's altar. Would it be possible in crawl to create a tile that is animated?

Re: Question: Are Animated Tiles Possible?

PostPosted: Tuesday, 26th March 2019, 15:20
by Goratrix
Not sure what you mean? They already are animated... many altars (Xom, Makhleb, Jiyva...), wizlab portals, etc... check out the feat.png file in tiles folder of the offline distribution, the frames are there. These rc options control the animations:

  Code:
tile_water_anim = true
        If disabled, animation of liquids will be suppressed.
        Defaults to false on WebTiles.

tile_misc_anim = true
        If disabled, animation of miscellaneous things such as altars and
        torches will be suppressed.

tile_realtime_anim = false
        If enabled, tile animations will run in real time and will not be tied
        to player actions.
        This option is only available on WebTiles.

Re: Question: Are Animated Tiles Possible?

PostPosted: Tuesday, 26th March 2019, 15:50
by MisterPersonMan
Goratrix wrote:Not sure what you mean? They already are animated... many altars (Xom, Makhleb, Jiyva...), wizlab portals, etc... check out the feat.png file in tiles folder of the offline distribution, the frames are there. These rc options control the animations:

  Code:
tile_water_anim = true
        If disabled, animation of liquids will be suppressed.
        Defaults to false on WebTiles.

tile_misc_anim = true
        If disabled, animation of miscellaneous things such as altars and
        torches will be suppressed.

tile_realtime_anim = false
        If enabled, tile animations will run in real time and will not be tied
        to player actions.
        This option is only available on WebTiles.


...I'm smart.
Thank you, though.

Re: Question: Are Animated Tiles Possible?

PostPosted: Tuesday, 26th March 2019, 16:16
by Goratrix
Well, really not sure now. Anyway, it's static frame based animation, so if you are asking about player / monster tile animation, that would require preparing every frame (which is obviously impossible for player tiles composed of many dynamic elements).