1
General / Re: AW: Change a Sprite in a function?
« on: December 08, 2013, 02:27:33 pm »Well the code is in many ways bad, but if one would ignore that, you might want to pass the sprite by reference instead of by value.
Indeed. All your code is doing is creating a copy of the sprite in the function, changing the copies scale then deleting the copy as it exits the function leaving the original sprite untouched.