CyberCRI / Hero.Coli

Hero.Coli is a single-player 2D top-down adventure game.
http://herocoli.com
MIT License
6 stars 4 forks source link

First wall cut scene was unexpectedly triggered #479

Closed raphik12 closed 7 years ago

raphik12 commented 7 years ago

Zone2WallCutScene played after Cellia went through wall with dev shortcuts, without having picked up GFP and therefore without activating the cut scene properly. Afterwards, Cellia was killed on purpose, and Zone2WallCutScene played again on respawn point.

Reproducible.

raphik12 commented 7 years ago

The newly added door triggers the cut scene due to Zone2WallCutScene's following code:

void OnTriggerEnter(Collider col)
    {
        if (_initialized && col.tag == "Door")
        {
            if (!_played)
            {
                start();
                _played = true;
            }
        }
...
raphik12 commented 7 years ago

related to #447