I am making a game in Cocos2D Version 3.1 using spriteBuilder. I am creating my animation by add the list of frames into an array and storing it in the cache. When I need to run the animation, I get it from the cache and play it on the screen. This works great for my running animation. I have another animation in which my character is sliding. When I play my sliding animation after my running animation, my character appears to be sliding in mid-air, not intersecting the ground. The reason for this is probably because the frames are loaded immeadately after the running animation, so they are loaded in the same place as the running animation. Since the frames of the sliding animation are smaller than the running animation, it makes it seem like the player is floating.
I would like to know if there is any way I can make the frames load a bit lower, so that they are touching the ground. Is the only way to do this to push the position of the hero down when the slide animation is loaded, and then back up when I want to load the run animation?
Thanks