Learn iOS SpriteKit with Examples, Code Snippets and Video Tutorials

A Sprite Kit issue changing the xScale or yScale of a physics body

A Sprite Kit issue changing the xScale or yScale of a physics body
June 6, 2014 Justin

So it seems Sprite Kit doesn’t like it when a node has a physics body and you change the xScale or yScale. Found this out the hard way when I had an SKAction applied to a node, and noticed that firing bullets through the node were passing right through it, but ONLY when the node had an xScale of -1.

xScale issue with Sprite Kit

And yes, I’m adding some “ghost” properties to my latest iOS Starter Kit.

Justin Dike is the owner and lead developer at CartoonSmart.com. He's taught hundreds of hours of game development video tutorials, covering everything from coding to art. These days he's working mostly on Swift and Sprite Kit tutorials, which often lead into highly polished iOS / tvOS Starter Kits, which require no programming at all, but are capable of making nearly any type game! Yeah, you read that write. You can also find Justin at the official CartoonSmart Podcast

0 Comments

Leave a reply

Check out our premium Swift and Sprite Kit Tutorial content!

Visit CartoonSmart.com