Changes

Jump to: navigation, search

An iOS 9 Sprite Kit Level Editor Game Tutorial

20 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
Before proceeding, be sure to select and delete the SpaceShip image set from the catalog.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Designing the Archery Scene ==
Run the application and touch the screen within the Archery Scene. Each time a touch is detected, the archer sprite will run through the animation sequence of shooting an arrow.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Creating the Arrow Sprite Node ==
}
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
This code creates a sprite node using the ball texture and then sets the initial position at the top of the scene but a random position on the X axis. The node is assigned a name and a circular physics body that is slightly less than the radius of the ball texture image (this will ensure that there is no gap when the arrow is made to stick into the ball in the next chapter). Precision collision detection is enabled and the ball node is added to the scene.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu