DeadSigilGames
Member
Hello everyone!
I've been wondering about what method should i use to draw my player weapon when it attacks, since i have the weapon sprite separate from the player actual sprite. The reason for this is that i want to be able to change the weapon sprite in a easier way and independently from the player actual sprite set.
I managed to make it work by creating an object, instancing and giving it the sprites i wanted thru code in my player step event, inside it's attack state machine.
Tho this method works, i've been thinking if there are other methods that can be more optimal for this purpose, like, i'm thinking of drawing the sprites right away from draw event, tho i don't know if this would be better or worse.
Any advices?
Thanks in advance
I've been wondering about what method should i use to draw my player weapon when it attacks, since i have the weapon sprite separate from the player actual sprite. The reason for this is that i want to be able to change the weapon sprite in a easier way and independently from the player actual sprite set.
I managed to make it work by creating an object, instancing and giving it the sprites i wanted thru code in my player step event, inside it's attack state machine.
Tho this method works, i've been thinking if there are other methods that can be more optimal for this purpose, like, i'm thinking of drawing the sprites right away from draw event, tho i don't know if this would be better or worse.
Any advices?
Thanks in advance