Is there any possible way how I can reference a previous sprite if there are a multiple number of them?
Like picking the sprite by it's IID: icon(icon.count-1)?
I make a calendar. At every day in the calendar events can happen. If there is an event at a given day I will spawn an icon/sprite inside that calendar cell.
Now I want to modify the size and position of the previous icon, if there is already an event at the same day. Instead of centering a single big icon I want to make both icons smaller and have one left and one right.
Here is a screenshot from the event:
And here is the result:
As you can see the first icon is bigger and centered. That's how it should look like if there is only one event on that day. But because there are two events on that day both should be small and on the sides like the smaller, right one.
But I do not know how I can edit the properties of the previous sprite from within the second subevent.
Any ideas? Thanks in advance! :D