The following script was used:
| // ---------Check what to do next--------- receiptBooleanCheck() function receiptBooleanCheck():void { if (! receiptInserted) { vendingFriendlyText.text="PLEASE INSERT RECIEPT"; } else if (receiptInserted && vendingMachine_txt.text!="AC42G") { vendingFriendlyText.text="PLEASE ENTER YOUR CODE"; stage.addEventListener(Event.ENTER_FRAME, vendingTextCountListener); stage.addEventListener(Event.ENTER_FRAME, vendingTextCountReset); } else if (receiptInserted && vendingMachine_txt.text=="AC42G"){ vendingFriendlyText.text="DRUG READY TO COLLECT"; orderedDrug = true; } } |
By adding this script and setting a boolean to true, this means that I can add an if statement so that once the boolean is set to true, the drug can would appear.
I created a new frame, and gave it the lable of "viewVendingDispenser". I then drew in the art for the bottom of the vending machine and created the can.
I used the following code for this frame:
| if (orderedDrug) { vendingDispenserView.itemDrugCan_btn.visible=true; } |
I then fix the issue regarding the password, as noted from the user testing, placed on the note.
Before
After
This looked much better and now contained a password which could be used to log into the computer.


No comments:
Post a Comment
Note: only a member of this blog may post a comment.