X F_C[X ( @ (//(  0/80@0?/8 0( ?G@POWOXOP?H0@/7@O_``h_hPX 0(P_oppxow_g@O/8'' 7p`o?G/7 0??H/8`/o?GOX@H0?/pOW?H/8 7OP?G/7( P0@PX@O0@ 0O @H/@' 00@@P0?'_OP@H( 7/7' ^^^^^^^^^^^^^^^^^^^^^^^^^^TeeBBBBeTT^^^^^^^eBDJ33333JJDBeZ^^^^TD33==#####==3JDBT^^^^eJ=###=3DeZ^^TB3# #=3JBZ^^T3#  #=JBT^^J# Sll #=JBZ^T# %,68??86,/@A*< ##45('.6787-9%:;*<=#$+&,--.,/01)2 3 $%&&'%($!)* ##  !"#     ??dD!@sprGhost  &x= tdN-7s 6lR{Lw+Vn8K~+s#L"AxWɟ]8Beq@ϧ:XbĄ4ȗҊ;cQBN9 wәO"[ $CT՜ _JĀF g8CB>_Sx?x3W_O%j7Ëэ>8?|Kt.0`y.Dzn\x7/ sprGhost2  x1 EILX;s'6ęM+yjr˝Õ/?kuCZ鵢|LovY"r|;5P\b]y?wX%p-h ^%Y8=8gZxT8>0*Ûn-jQg80 'H@%Zb7DTxHA8Fy8HYHpk /h7/words [z// boolean used to alternate speakers speaker1=true; // I've done it this way so I don't have to count the array // array of happy phrases n=0; phrase1[n]= "Nice day today"; n+=1 phrase1[n]= "The world is beautiful"; n+=1 phrase1[n]= "Everything is great"; n+=1 phrase1[n]= "I feel happy today"; // pick a random phrase p1=phrase1[round(random(n))]; // array of unhappy phrases m=0; phrase2[m]= "Rotten day today"; m+=1 phrase2[m]= "The world is ugly"; m+=1 phrase2[m]= "Everything is terrible"; m+=1 phrase2[m]= "I feel depressed today"; // pick a random phrase p2=phrase2[round(random(m))]; 0000000[draw_text(5, room_height-32, 'F1 for help') // create new phrase1 and phrase2 each time space bar pressed // enable speakers alternately //keyboard_check_pressed(key) Returns whether the key with the particular keycode was pressed since the last step. if keyboard_check_pressed(vk_space) { p1=phrase1[round(random(n))]; p2=phrase2[round(random(m))]; if (speaker1 = true) {speaker1=false; break;} if (speaker1 = false) {speaker1=true;} } //keyboard_lastkey Keycode of last key pressed. // display phrase if last key pressed was space bar // alternate phrases if keyboard_lastkey=vk_space { if speaker1 {draw_text(objGhost1.x,objGhost1.y-32,p1)} else { draw_text(objGhost2.x,objGhost2.y-32,p2) } } 0000000 objGhost1 Dmaction_move_to40000000Amaction_move_to-40000000 objGhost2 'maction_move_to40000000%maction_move_to-40000000room0press spacebar for conversation        @0@XGame InformationX~{\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil Arial;}} {\colortbl ;\red0\green0\blue0;} \viewkind4\uc1\pard\cf1\lang1033\fs24 the optimist and the pessimist \par \lang3081\f1 \par \lang1033\f0 keep pressing spacebar for conversation \par \par A and D moves optimist \par left and right arrows moves pessimist\lang3081\f1 \par } SpritessprGhost sprGhost2Sounds BackgroundsPathsScripts Fonts Time LinesObjectswords objGhost1 objGhost2Roomsroom0 Game Information Global Game Settings