Nicole Kennedy Design

Ideation, Creation & Everything In Between

Factory – Game Logic

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 –

  • Button pressed
  • Button animates
  • First row of lights change to green
  • Count variable as one
  • Button pressed
  • Button animates
  • Second row of lights change to yellow
  • Count variable as two
  • Button pressed
  • Button animates
  • Third row of lights change to red
  • Count variable as three

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.

Screen Shot 2015-11-25 at 09.38.17 Screen Shot 2015-11-25 at 09.38.24

Screen Shot 2015-11-25 at 09.42.34

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on December 1, 2015 by in Final Year - Creative Futures and tagged .
%d bloggers like this: