Time for action — creating the HUD objects
Now, we will move on to creating the Heads Up Display (HUD) objects for our game.
1. We are now ready to create the
HUD
objects for our game. Switch to theHUD
layer and create aSprite
calledP1Face
, and give it an image of theP1Torso
head and set itsCollisions
mode toBounding Box:
2. Next, create a
Text
object calledP1Info
and set it up to match the following screenshot:3. Create similar objects replacing
P1
withP2
for the second player. In this case, have the objects match the following layout screenshot:4. Now create a
Text
object for when the second player is not playing, and call itP2Join
. Set its text toPress left control to join
and have it matched to the following screenshot:5. Give it a
Sine
behavior to make it fade in and out by matching its settings to those in the following screenshot:6. Now create the final
HUD
item, aSprite
calledNextSign
, and place the next arrow image into it. Set theCollisions
of this object toNone...