serifan_chicken
Member
hi
upon pressing a keyboard button my game spawns a bunch of d20 dice that you can grab, drag and upon drag_end they move in the direction you dragged them and draw a "rolling" sprite.
now im spawning 10 instances of the same object with the same sprite. i have to change the sprite speed from 0 to 8 once theyre "in motion".
sprite_set_speed(self.sprite_index, 8, spritespeed_framespersecond)
since all of them have the same sprite, all of them start the "roll animation" when im rolling one die.
i dont want to have to create copies of the same sprite, one for each spawned instance.
so what can i do?
upon pressing a keyboard button my game spawns a bunch of d20 dice that you can grab, drag and upon drag_end they move in the direction you dragged them and draw a "rolling" sprite.
now im spawning 10 instances of the same object with the same sprite. i have to change the sprite speed from 0 to 8 once theyre "in motion".
sprite_set_speed(self.sprite_index, 8, spritespeed_framespersecond)
since all of them have the same sprite, all of them start the "roll animation" when im rolling one die.
i dont want to have to create copies of the same sprite, one for each spawned instance.
so what can i do?