How do I keep an objects animation sizes the same when the object is changed from one animation to another while game is playing. I had three screen shots saved that I wanted to use as objects (they were all very close to the same size). I added an object, chose “new from scratch” and added a “Sprite”, then clicked “Add an animation”, “Add a Sprite”, “File from your Device”, and added the first Sprite (image number 1). Then under that same Sprite I again clicked “Add an animation”, “Add a Sprite”, “File from your Device” and added image number 2, and I repeated this process for image number 3. All of these images showed up in this one Sprite and I named each image animation 1, animation 2, and animation 3. I added this object to the game went to the “Instance properties” section and set the perfect size (which was a little smaller than the initial image). During game play the first animation stays the correct size, but when the object is changed to animation number 2 or 3 those animations show up as the larger version of themselves which was their initial size. Animation 2 and 3 are not staying the same size as animation number 1. Only animation number 1 stays at the size I set in the game. How do I maintain the size set for animation number 1 for animations number 2 and 3?
I’m not really sure why changing the size in the properties panel only works on the first animation.
Setting the size with an action at the beginning of the scene should work.
Usually it’s best to import images with the actual size that are going to be used in game, except if there’s a reason for the larger size.
1 Like