Game Maker 8.1: How to Create a Cursor, Hide & Reveal Inventory, & Fix Load Glitch.
Visit my MC GAMES site: https://mcolverdesigns.itch.io
Paypal Donate: http://bit.do/fkPAb
GM81 File: https://bit.ly/31Xg3nT
obj_cursor
Events:
Create
Actions:
Jump to Position icon:
mouse_x
mouse_y
Events:
Step
Actions:
Jump to Position icon:
mouse_x
mouse_y
obj_load
Events:
Left Pressed Mouse
Actions:
{
friction = 0.2;
// initialiseert 3D
d3d_start();
d3d_set_hidden(true);
d3d_set_lighting(false);
d3d_set_culling(false);
d3d_set_fog(true,c_dkgray,10,500);
texture_set_interpolation(true);
}
Actions:
Set the score caption info
don't show
obj_hideshow, persistent, Depth -1000
Events:
Step
Actions:
x=view_xview[0]+500
y=view_yview[0]+100
Events:
Draw
Actions:
draw_sprite(sprite_index,image_index,view_xview[0]+500,view_yview[0]+100);
Events:
press F1, be sure the code is set to "Other", makes items visible.
Actions:
obj_nogun.visible = true;
obj_havegun2.visible = true;
obj_havegun.visible = true;
obj_needcard.visible = true;
obj_cardget.visible = true;
getcard.visible = true;
obj_nogun2.visible = true;
obj_crystal_out.visible = true;
obj_crystal_box.visible = true;
Events:
press F2, be sure the code is set to "Other", makes items not visible.
Actions:
obj_nogun.visible = false;
obj_havegun2.visible = false;
obj_havegun.visible = false;
obj_needcard.visible = false;
obj_cardget.visible = false;
getcard.visible = false;
obj_nogun2.visible = false;
obj_crystal_out.visible = false;
obj_crystal_box.visible = false;