I'm working on a puzzle generator which is presently set up to save each 'step' of the puzzle's solution to local variables. However, despite there being no errors when it attempts to do so, the changes it makes don't appear in AC's local variables.
What am I doing wrong here? The script is attached to an OnStart cutscene GameObject and I'm calling it through a Send Message event in an ActionList. Am I required to attach this script that's attempting to change local/global variables to AC's PersistentEngine object?
What's meant to happen is:
1. the ActionList sends SetupPuzzle() to the OnStart cutscene gameobject (which the script is attached to)
2. SetupPuzzle fills local variables 9 through 15 with the string "Forward" (or if I uncommented the original code, either "Forward", "Left", or "Right")
3. SetupFlags chooses from a static list of possible solutions to whichever step of the player the puzzle is on.
4. That solution is sent to ChangeFlag, which either flips or doesn't flip the X of the spriterenderer that it's pointed to.
However, no flags change position and the local variables remain in their default null state.
The ActionList calling the method:
My variable list:
Comments