Hey everyone.
I've been trying to figure out how to get the x position of an object from a specific location.
So for example, you have a sprite that has been spawned at x=300 y=300
How would you get the x value of where the sprite ends to the right.
What I have been doing is creating a variable that holds the sprite's width then adding its x position to the width which then equals the x position on the far right of the sprite.
Is there an easier alternative to this?
Thanks.