• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Data-Driven Decisions

So far we have applied labels to buttons, which is nice. The buttons click nicely, too. But nothing happens. By adding functionality to the buttons, we can extend interest in our little game beyond the first few seconds. There are several strategies by which this can be done.

A bit of code might examine the AnswerOption to see if it is the correct one. If that code were in the base movie it might have a local variable where the clicked option leaves its name:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint