Game Development Reference
In-Depth Information
mainChar
The character has the same structure as the player character in Chapter 5 , Building an Ex-
citing Endless Runner Game , but this time I've added a new Child Actor component type
rather than putting the UI to the camera. I prefer to show a new way to set the UI which is
more efficient. Now you can assign the uiText blueprint actor to a child component of the
mainChar blueprint.
Also, I've added a billboard component to represent the point from which I'm going to
spawn the bullet.
Finally, I added a bullet integer variable into the graph to help me store and check the cur-
rent ammo the player has, to prevent the bullets from spawning if the player keeps pressing
while his ammo is empty.
Search WWH ::




Custom Search