@geork, you seem to like heavy programs 
Code: ags
Shouldn't this be better?
Code: ags

DynamicSprite *f = DynamicSprite.CreateFromExistingSprite(o.Graphic);
int Xfactor = f.Width;
int Yfactor = f.Height;
Shouldn't this be better?
int Xfactor = Game.SpriteWidth[o.Graphic];
int Xfactor = Game.SpriteHeight[o.Graphic];