Game Development Reference
In-Depth Information
Figure 9-3
.
The chain with the ball properly arranged
Select a
chainball_chain2
in the Timeline, and set its position to
0x0
. This will be the top-
most chain element. Now select a
chainball_chain1
sprite in the Timeline, and set its posi-
tion to
0x-24
. This should make it look like it hooks perfectly into the first chain. Repeat
this process for the remaining four chains, alternating
chain1
and
chain2
so that they look
like
Figure 9-3
and decreasing the Y position for every chain element by another -24
points. The chain element's Y positions from top to bottom should be 0, -24, -48, -72,
-96, and -120. The ball's Y position should be -178.
Since the
chain1
sprites should be drawn on top of all
chain2
sprites, you need to move
the
chain1
sprites below the
chain2
sprites in the Timeline to ensure their draw order is
correct. The ball is supposed to be drawn underneath the last
chain1
sprite, so it's best to
move the ball just between the
chain2
and
chain1
sprites. Also, just because it seems more
natural, you may want to move the
hook
node to the very top.
Search WWH ::
Custom Search