- Edited
Hello :) The title may sound weird but this is how I came to this question... In my code, I need to know the width of a sprite's texture, then divide it by 32 to know how many frames can be extracted from it (as a part of a strip). The only problem is that get_texture().get_width() returns a constant so if I divide the result by 32, I have an error message because I changed the value of this constant. Do you know a simple way to turn the initial width into a variable ? Thanks a lot.