E
Endless
Guest
I've been using GM for several months, but i'm stuck at this one for almost 3 days. Help will be very much appreciated. And sorry for my bad english.
The problem is when i pick up obj_m16 and obj_pistol which are completely similar with different sprites and some options. Both of the weapons sprites are visible at the same time. I'm trying to make it to be visible only the one that is needed to be visible when i change weapons on the right click. I tried the sprite_delete, but that just deletes the sprites. And i've been trying something with arrays, but without succes. Here are the pictures. The CanBePickedUp script is at the end of the both obj_m16 and obj_pistol.
http://prntscr.com/bm4lan
http://prntscr.com/bm4m44
The problem is when i pick up obj_m16 and obj_pistol which are completely similar with different sprites and some options. Both of the weapons sprites are visible at the same time. I'm trying to make it to be visible only the one that is needed to be visible when i change weapons on the right click. I tried the sprite_delete, but that just deletes the sprites. And i've been trying something with arrays, but without succes. Here are the pictures. The CanBePickedUp script is at the end of the both obj_m16 and obj_pistol.
http://prntscr.com/bm4lan
http://prntscr.com/bm4m44