Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Information about object: aurelie
- Sprite: s_aureolawalkdown
- Solid: true
- Visible: true
- Depth: -999
- Persistent: false
- Parent: <no parent>
- Mask: <same as sprite>
- Create Event:
- execute code:
- line = " ";
- count = 0;
- speaking = false
- instance_create(x,y,write_textbox);
- set variable aureliedirection to choose(1,2,3,4)
- Alarm Event for alarm 0:
- start moving in directions 000010000 with speed set to 0
- execute code:
- image_index=1
- image_speed=0
- set Alarm 1 to irandom_range(40,60)
- Alarm Event for alarm 1:
- set variable aureliedirection to choose(1,2,3,4)
- Step Event:
- execute code:
- if count = 0 {
- speaking = false;
- line = " ";
- }
- if count = 1 {
- line = "Hi";
- }
- if count = 2 {
- line = "Dumbith";
- }
- if count = 3 {
- line = "U'z ratchet";
- }
- if aureliedirection is equal to 1
- execute code:
- sprite_index=s_aureolawalkright
- image_index=0
- image_speed=.3
- start moving in directions 000001000 with speed set to 5
- set Alarm 0 to irandom_range(21,30)
- set variable aureliedirection to 0
- if aureliedirection is equal to 2
- execute code:
- sprite_index=s_aureolawalkdown
- image_index=0
- image_speed=.3
- start moving in directions 010000000 with speed set to 5
- set Alarm 0 to irandom_range(21,30)
- set variable aureliedirection to 0
- if aureliedirection is equal to 3
- execute code:
- sprite_index=s_aureolawalkleft
- image_index=0
- image_speed=.3
- start moving in directions 000100000 with speed set to 5
- set Alarm 0 to irandom_range(21,30)
- set variable aureliedirection to 0
- if aureliedirection is equal to 4
- execute code:
- sprite_index=s_aureolawalkup
- image_index=0
- image_speed=.3
- start moving in directions 000000010 with speed set to 5
- set Alarm 0 to irandom_range(21,30)
- set variable aureliedirection to 0
- Collision Event with object player:
- execute code:
- image_index=0
- image_speed=0
- start moving in directions 000010000 with speed set to 0
- Collision Event with object wall:
- start moving in directions 000010000 with speed set to 50
- execute code:
- image_index=0
- image_speed=0
- Collision Event with object building1:
- execute code:
- image_index=0
- image_speed=0
- start moving in directions 000010000 with speed set to 50
- Collision Event with object scott:
- execute code:
- image_index=0
- image_speed=0
- start moving in directions 000010000 with speed set to 50
- Key Release Event for <Space> Key:
- execute code:
- if distance_to_object(player) < 32 {
- count+= 1;
- speaking = true;
- if count > 3 {
- count = 0;
- speaking = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement