Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Information about object: moveract_obj
- Sprite: soulback_spr
- Solid: false
- Visible: true
- Depth: -40
- Persistent: false
- Parent:
- Children:
- Mask:
- No Physics Object
- Create Event:
- execute code:
- pos = 0;
- x = 48;
- y = 272;
- Step Event:
- execute code:
- //LEFT
- if keyboard_check_pressed(vk_left)
- switch(pos){
- case 0:
- x = 447;
- y = 272;
- stop_and_sound(selectui_snd);
- pos = 2;
- break;
- case 1:
- x = 48;
- y = 272;
- stop_and_sound(selectui_snd);
- pos = 0;
- break;
- case 2:
- x = 247;
- y = 272;
- stop_and_sound(selectui_snd);
- pos = 1;
- break;
- }
- //RIGHT
- if keyboard_check_pressed(vk_right)
- switch(pos){
- case 0:
- x = 247;
- y = 272;
- stop_and_sound(selectui_snd);
- pos = 1;
- break;
- case 1:
- x = 447;
- y = 272;
- stop_and_sound(selectui_snd);
- pos = 2;
- break;
- case 2:
- x = 48;
- y = 272;
- stop_and_sound(selectui_snd);
- pos = 0;
- break;
- }
- //Z
- if keyboard_check_pressed(ord('Z'))
- switch(x){
- case 48:
- stop_and_sound(confirm_snd);
- with act_options {instance_destroy()};
- global.mess = 0;
- instance_create(0,0,act_flavortext);
- instance_destroy();
- break;
- case 247:
- stop_and_sound(confirm_snd);
- with act_options {instance_destroy()};
- {if global.has_acted1 = 0 {global.mess = 1 global.has_acted1 = 1};
- else global.mess = 3;}
- instance_create(0,0,act_flavortext);
- instance_destroy();
- break;
- case 447:
- stop_and_sound(confirm_snd);
- with act_options {instance_destroy()};
- {if global.has_acted2 = 0 {global.mess = 2 global.has_acted2 = 1};
- else global.mess = 4;}
- instance_create(0,0,act_flavortext);
- instance_destroy();
- break;
- }
- //X
- if keyboard_check_pressed(ord('X'))
- {
- with act_options instance_destroy();
- instance_create(0,0,asrielflavortext_obj);
- with mover_object_thing {x = actss_obj.x y = actss_obj.y};
- global.mover = 0;
- instance_destroy();
- }
Add Comment
Please, Sign In to add comment