The document discusses bugs encountered with respawning the main actor "Achilles" in a game. An attribute called "Respawn" was used to control respawning through another actor called "Control". However, the enemy was not also respawning, leading to issues. The problem was solved by adding a "Reset Scene" rule to the "Achilles" actor to restart the game when colliding with the enemy.
1. GameSalad Bugs - “Achilles”
!
!
The bug I had was to do with respawning my main actor
again once he had died. So I made a game attribute
called “Respawn” which is a integer. I then implemented
that in my kill rule
for the actor
“Achilles”.
!
I then created another actor called
“Control”which controls the respawning
action. Which basically says when this
respawn is set at 1we want GameSalad to
create a new actor at the position “49, 139”.
!
!
The problem I then had
was when the enemy
kills the Achilles; he
didn’t respawn and the
enemy kept on moving
as I hadn’t put any
rules in place to
respawn him too.
!
Which was a real pain
was that Achilles would
then spawn an
unlimited amount of times but slightly bigger than he
originally was; also the new “Achilles” was able to kill the
enemy which shouldn’t happen.
!
The outcome to this
problem was actually
very simple. I made a rule in the “Achilles”
actor calling it “Reset Scene” and made an
attribute which states that when the actor
collides with the enemy the reset scene
behaviour then comes into place and starts the
whole game again.