#Top down sprite trouble

8 messages · Page 1 of 1 (latest)

woven oak
#

you could leverage the Animation End event for this. There, just check if the correct sprite is assigned, and if it is set the new sprite you want (and remember to set image_index to 0 as well if you want the new sprite to play from the start)

grizzled musk
#

Do you think you could try and write where these lines of code would go? I tried implementing it to mine but it didn't seem to quite work

woven oak
#

do you have an Animation End event already?

#
//in Animation End
if sprite_index=spr_old {
  sprite_index=spr_new;
  image_index=0;
}```
#

that ought to do it

#

(in case you didn't know)

grizzled musk
#

Ah, okay, I thought you were talking about a line of code instead, thanks for the help! I'll let you know if it works