Game Development Reference
In-Depth Information
Here I've made a really cool scene where Magellan takes Dom away. Now, we have
to program Magellan's movements and general unpleasantness.
We will start by dragging our
Magellan
actor into our scene. I made him a little bit
smaller to be more proportionate with Kevin, and gave him a new Integer attribute
for his health at value
100
. I also made a game-wide Boolean attribute called
Boss
Battle
. This way, Magellan will only start moving once this Boolean is triggered.
I think I want Magellan to be waiting for Kevin. Then once Kevin reaches the boss
area, the battle will start.
I placed an invisible actor just in front of Magellan so that when Kevin collides with
it, it triggers the
Boss Battle
Boolean attribute, and the battle begins.
Open up the
Magellan
actor. First and foremost, we need to change his
Maximum
Speed
. I made it 500, which is a decent speed, considering that he'll be able to bounce
around. Next, make sure his
Fixed Rotation
option is checked and his
Bounciness
is set to
1
.
Now we will drag in a
Collide
behavior, and set it to
actors with the platform(s)
.
We will now create a new rule in which we'll build all our battle behaviors. The rule
is
Attribute
|
game.Boss Battle
|
is
|
true
.