Search found 2 matches

by sawurora
Mon Sep 26, 2022 7:55 pm
Forum: Support and Development
Topic: Animating tiles with STI
Replies: 3
Views: 1292

Re: Animating tiles with STI

Have you tried Map:swapTile()? https://love2d.org/forums/viewtopic.php?f=5&t=76983&p=231293#p231293 I did try, but it wouldn't make it possible to swap between each frame multiple times. I am now trying with instance.batch:set(), because a person said it worked for them. function map:update...
by sawurora
Mon Sep 26, 2022 6:21 am
Forum: Support and Development
Topic: Animating tiles with STI
Replies: 3
Views: 1292

Animating tiles with STI

Hello! So, I am creating a game, and I've been trying to animate water with STI and Tiled, I tried many ways to do so and the closest I've ever gotten (I guess) is with the setLayerTile function: function map:update(dt) self.waterTimer = self.waterTimer + dt if self.waterTimer >= self.waterDuration ...