Game Development Reference
In-Depth Information
Let's add
Set View Target with Blend
to it to set the camera view to the current blueprint
camera. Also, add
Get Player Controller
with
Player Index
of
0
to it to use the first
player in the player's array.
•
Reset Score
: This is mainly used to set the score in the UI by setting the
playerS-
core
variable to zero (which is zero by default anyway), and converting it into
string
and applying it to the
TextRenderer
component using the
Set Tex
node
and setting
Value
to the
playerScore
converted string.
•
Randomize the Fruits
: This simple function will be called whenever we want to
set a random value to the
fruitID
or
instancingPoint
variables. As both of them
are
int
type variables, we will use the node
Random Integer in Range
and set
the range for
fruitID
between
1
and
5
as all of the fruits and bombs are five blue-
prints only. Then set the range for
instancingPoint
to between
1
and
7
as I have
only seven instances of the
billboard
components.
Search WWH ::
Custom Search