Ideation, Creation & Everything In Between
The factory scene is one of the more difficult scenes to create the game logic for. The scene contains hotspot interactions like the other scenes however the catch to this is this scene will require a variable.
Upon interaction we want the following to happen –
Check variable if 0 play AL_RedButton0_Variable if 1 play AL_RedButton1_Variable or if 2 play AL_RedButton2_Variable.
After a lot of experimentation with this scene I finally resolved the problem without the use of a variable which I didn’t think was possible. I was able to do this with the use of object : Change material action which changed the material of the object to make it appear to be another colour. In order to get the next row to change colour I told the hotspot to change which interaction it would use next using a Hotspot: change interaction action which disables the previous interaction if applicable and activates the next interaction.
To setup the interactions I must add them to the one hotspot and link each interaction to the relevant actionlist which will then call the relevant set of actions. Which change the material and select the interaction to call next upon pressing the button.