P
Phocoena Studio
Guest
Hi
What I'm trying to do here, is when player open the pack by clicking obj_open,
it moves to rm_packopen from rm_packs, then I want to create the according pack that player wanted to open,
so basically i have four packs, i have one obj_pack with 4 image in the sprite, i have one obj_open.
But somehow, when I moved to rm_packsopen, It doesn't create obj_pack.
Object \ obj_open \ Left Released:
switch(interimpacktype){
case 1:{if (packno_1 > 0)
{
packno_1 -= 1;
room_goto(rm_packsopen);
packopentype[0] = 1;
instance_create(room_width/2, room_height/2, obj_pack)
}
break;
}
case 2:{ ....(basically the same with above)
Object \ obj_pack \ Create:
if (packopentype[0] = 1)
{
image_index = 0;
packopentype[0] = 0;
}
if(...the same
Rooms \ rm_packs \ obj_open creation code (for pack type 1):
interimpacktype = 1;
What I'm trying to do here, is when player open the pack by clicking obj_open,
it moves to rm_packopen from rm_packs, then I want to create the according pack that player wanted to open,
so basically i have four packs, i have one obj_pack with 4 image in the sprite, i have one obj_open.
But somehow, when I moved to rm_packsopen, It doesn't create obj_pack.
Object \ obj_open \ Left Released:
switch(interimpacktype){
case 1:{if (packno_1 > 0)
{
packno_1 -= 1;
room_goto(rm_packsopen);
packopentype[0] = 1;
instance_create(room_width/2, room_height/2, obj_pack)
}
break;
}
case 2:{ ....(basically the same with above)
Object \ obj_pack \ Create:
if (packopentype[0] = 1)
{
image_index = 0;
packopentype[0] = 0;
}
if(...the same
Rooms \ rm_packs \ obj_open creation code (for pack type 1):
interimpacktype = 1;