Thanks for the accurate explanation, unfortunately as I imagined I lack the notions of mathematics and I only understand the theory a little. XD
Sorry if I take this opportunity to ask you one last thing, I noticed that if I reflect the sprite and then try to enlarge it, it is reflected again as it was originally, is there a simple way to avoid this?
edit actually in the second way I can understand everything better, I will try to create one like this too, but to keep it in a code the most compact one is better