Advertisement
DMS1694

Untitled

Apr 4th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. Information about object: aurelie
  2.  
  3. Sprite: s_aureolawalkdown
  4. Solid: true
  5. Visible: true
  6. Depth: -999
  7. Persistent: false
  8. Parent: <no parent>
  9. Mask: <same as sprite>
  10.  
  11. Create Event:
  12. execute code:
  13.  
  14. line = " ";
  15. count = 0;
  16. speaking = false
  17. instance_create(x,y,write_textbox);
  18.  
  19. set variable aureliedirection to choose(1,2,3,4)
  20.  
  21. Alarm Event for alarm 0:
  22. start moving in directions 000010000 with speed set to 0
  23. execute code:
  24.  
  25. image_index=1
  26. image_speed=0
  27.  
  28. set Alarm 1 to irandom_range(40,60)
  29.  
  30. Alarm Event for alarm 1:
  31. set variable aureliedirection to choose(1,2,3,4)
  32.  
  33. Step Event:
  34. execute code:
  35.  
  36. if count = 0 {
  37. speaking = false;
  38. line = " ";
  39. }
  40. if count = 1 {
  41. line = "Hi";
  42. }
  43. if count = 2 {
  44. line = "Dumbith";
  45. }
  46. if count = 3 {
  47. line = "U'z ratchet";
  48. }
  49.  
  50. if aureliedirection is equal to 1
  51. execute code:
  52.  
  53. sprite_index=s_aureolawalkright
  54. image_index=0
  55. image_speed=.3
  56.  
  57. start moving in directions 000001000 with speed set to 5
  58. set Alarm 0 to irandom_range(21,30)
  59. set variable aureliedirection to 0
  60. if aureliedirection is equal to 2
  61. execute code:
  62.  
  63. sprite_index=s_aureolawalkdown
  64. image_index=0
  65. image_speed=.3
  66.  
  67. start moving in directions 010000000 with speed set to 5
  68. set Alarm 0 to irandom_range(21,30)
  69. set variable aureliedirection to 0
  70. if aureliedirection is equal to 3
  71. execute code:
  72.  
  73. sprite_index=s_aureolawalkleft
  74. image_index=0
  75. image_speed=.3
  76.  
  77. start moving in directions 000100000 with speed set to 5
  78. set Alarm 0 to irandom_range(21,30)
  79. set variable aureliedirection to 0
  80. if aureliedirection is equal to 4
  81. execute code:
  82.  
  83. sprite_index=s_aureolawalkup
  84. image_index=0
  85. image_speed=.3
  86.  
  87. start moving in directions 000000010 with speed set to 5
  88. set Alarm 0 to irandom_range(21,30)
  89. set variable aureliedirection to 0
  90.  
  91. Collision Event with object player:
  92. execute code:
  93.  
  94. image_index=0
  95. image_speed=0
  96.  
  97. start moving in directions 000010000 with speed set to 0
  98.  
  99. Collision Event with object wall:
  100. start moving in directions 000010000 with speed set to 50
  101. execute code:
  102.  
  103. image_index=0
  104. image_speed=0
  105.  
  106.  
  107. Collision Event with object building1:
  108. execute code:
  109.  
  110. image_index=0
  111. image_speed=0
  112.  
  113. start moving in directions 000010000 with speed set to 50
  114.  
  115. Collision Event with object scott:
  116. execute code:
  117.  
  118. image_index=0
  119. image_speed=0
  120.  
  121. start moving in directions 000010000 with speed set to 50
  122.  
  123. Key Release Event for <Space> Key:
  124. execute code:
  125.  
  126. if distance_to_object(player) < 32 {
  127. count+= 1;
  128. speaking = true;
  129.  
  130. if count > 3 {
  131. count = 0;
  132. speaking = false;
  133. }
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement