Sprite: spr_player_1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Step Event:
execute code: //movement code if (keyboard_check(ord('A'))) {x-=5;} if (keyboard_check(ord('D'))) {x+=5;} if (keyboard_check(ord('W'))) {y-=5;} if (keyboard_check(ord('S'))) {y+=5;}
Information about object: obj_player_2Sprite: spr_player_2 Solid: false Visible: true Depth: 0 Persistent: false Parent:Children: Mask: No Physics ObjectStep Event:execute code: //movement code if (keyboard_check(vk_left)) {x-=5;} if (keyboard_check(vk_right)) {x+=5;} if (keyboard_check(vk_up)) {y-=5;} if (keyboard_check(vk_down)) {y+=5;}Information about object: obj_next_roomSprite:Solid: false Visible: true Depth: 0 Persistent: false Parent: Children: Mask: No Physics ObjectCreate Event:execute code: room_goto(room_example);Information about object: obj_view_controlSprite:Solid: false Visible: true Depth: 0 Persistent: false Parent: Children: Mask: No Physics ObjectCreate Event:execute code: view_enabled[0] = true;//enable view view_visible[0] = true;//make visibleview_xview[0]=800;//set wiew widthv view_xview[0]=0;//set view position view_yview[0]=0; view_wview[0]=400;//set size of view view_hview[0]=400; view_xport[0]=0;//set position of port view_yport[0]=0; view_wport[0]=400;//set size of port view_hport[0]=400; view_object[0]=obj_player_1;//set object to follow view_hborder[0] = view_wview[0] / 2; view_vborder[0] = view_hview[0] / 2; view_enabled[1] = true;//enable view view_visible[1] = true;//make visibleview_xview[0]=800;//set wiew widthv view_xview[1]=0; view_yview[1]=0; view_wview[1]=400; view_hview[1]=400; view_xport[1]=400; view_yport[1]=0; view_wport[1]=400; view_hport[1]=400; view_object[1]=obj_player_2;//set object to follow view_hborder[1] = view_wview[0] / 2; view_vborder[1] = view_hview[0] / 2;Draw GUI Event:execute code: draw_rectangle(1,1,399,399,true); draw_rectangle(401,1,799,399,true);
No comments:
Post a Comment