Hi,
I was wondering. Is it possible to add a variable to a texturename so when i draw an image the texture drawn is dependant of the value of the variable?
And how do I do that?
For example?
I want to draw a different texture dependant of my players nr. of lifes left.
Number of lifes is stored in the variable player_life
And i have different textures: player_ 01, player_02, player_03 etc
Now how would i do something like this:
draw(player_0[+player_life], x,y)
Or do I need an extra line of code to set which texture i want to use?