Scene objects (condition dependant) and odd behaviour of animations

  • #1, by MateuszTuesday, 25. September 2018, 21:38 6 years ago
    I've encountered a following problem (VIS 5.0.6):
    - I have a scene object "X" linked with condition "X VISIBLE?"
    - object X consists of three animations ("animX1", "animX2", "animX3"), with "animX1" being set as default
    - during the game when certain conditions are met "X VISIBLE?" is set as false
    - when "X VISIBLE?" is false, odd things start to happen. Object starts flickering - it shows part of one animation for short period of time, then dissapears, then shows frame for a second, then dissapears so on
    -said object has also action area, and when "X VISIBLE?" is false, despite the fact of "flickering" action area is properly unavailable (even in seconds when flickering frames are visible)
    - I launched console to look at conditions and despite the fact of flickering "X VISIBLE?" = false

    Any ideas guys? It turned out to be a monumental problem for me, as pretty much all my scenes are build with said objects and at certain part of game they should dissapear. All objects has individual names, individual names for animations and so on.


    Newbie

    59 Posts


  • #2, by sebastianTuesday, 25. September 2018, 21:56 6 years ago
    just to be sure: Are you loading a savegame file which may contain old data?

    Thread Captain

    2346 Posts

  • #3, by MateuszTuesday, 25. September 2018, 22:12 6 years ago
    I'm using a simple system - when "new game" is first pressed -  "execute autosave #1" /"load autosave #1" (creating "clean" data for reset of conditions/values) . Then - as story progress all progress is stored in "autosave 2"). Autosave 2 is used for Load/Continue.

    Problem with animations exists in both editor's player (run game/run on scene) and in game that was build.

    Funny thing however - some objects on game start has "visible?" = false (and are properly invisible). Then when conditions occur they have "visible?"=true and are properly visible. Seems that flicekering occures when "visible?" is set to false for a second time.

    Newbie

    59 Posts

  • #4, by MateuszTuesday, 25. September 2018, 22:39 6 years ago
    OK, I have a zero idea why stuff I wrote happen, but it seems that I found workaround for the issue.

    At this moment in "At beginning of the scene"  i had stuff around those lines:

    If condition "Plot.Chapter01.End" is true
    > If condition "Plot.chapter02.End" is false
    > Change condition "X VISIBLE?" to false
    > End if
    End if

    After changing it to:

    If condition "Plot.Chapter01.End" is true
    > If condition "Plot.chapter02.End" is false
    > Change condition "X VISIBLE?" to false
    > Hide animation "anim X1"
    > Hide animation "anim X2"
    > Hide animation "anim X3"
    > End if
    End if

    it seems that it's working as intended. Not very elegant, adds a ton of work but still better than stuff that was happening earlier.

    Newbie

    59 Posts