I have considered having the object change bounds as it is animating. Something like this:
proc/cycle_bounds(bound_variable, delay)
if(args.len > 2)
for(var/bound in 3 to args.len)
sleep(delay)
vars[bound_variable] = args[bound]
vars[bound_variable] = initial(vars[bound_variable])
The thing about this method is it is time consuming. I'm sure there's an easier way to do this.
Do you guys set the bounds once? Or do you have bounds change with the icon's animation so that it is more accurate? Suggestions and the like are welcome.
It's not really practical to be changing bounds to try to perfectly fit the image, anyway.
http://devmag.org.za/2011/01/18/ 11-tips-for-making-a-fun-platformer/: