S
Sroft
Guest
Ok so I have two problems and decided to post it to one thread
My first and most important problem is I have my player pick up a gun by colliding with it that works perfectly fine BUT when i leave that room and go to the next the gun is no longer with my player I already tried making the object persistent but still failed
My second problem is i have s script here
if (!place_meeting(x,y+1,WObject)) and WEAPONS_MODE.HANDS
{
sprite_index = PlayerA;
image_speed = 20;
if (sign(vsp) > 20) image_index = 1; else image_index = 1;
}
else
{
image_speed = 1;
if (hsp == 0)
{
sprite_index = Player;
}
else
{
sprite_index = PlayerR;
}
}
if (hsp != 0) image_xscale = sign(hsp);
for when my player is unarmed but the problem is when i jump(PlayerA) it dosent do the animation it is jumps but my player looks like she is just running in mid air but when I have a gun like my gun script here
if (!place_meeting(x,y+1,WObject)) and WEAPONS_MODE.PLASMA
{
sprite_index = sPGunPlasmaA;
image_speed = 20;
if (sign(vsp) > 20) image_index = 1; else image_index = 1;
}
else
{
image_speed = 1;
if (hsp == 0)
{
sprite_index = sPGunPlasma;
}
else
{
sprite_index = sPGunPlasmaR;
}
}
if (hsp != 0) image_xscale = sign(hsp);
the jump animation works fine
plz help and thank you
My first and most important problem is I have my player pick up a gun by colliding with it that works perfectly fine BUT when i leave that room and go to the next the gun is no longer with my player I already tried making the object persistent but still failed
My second problem is i have s script here
if (!place_meeting(x,y+1,WObject)) and WEAPONS_MODE.HANDS
{
sprite_index = PlayerA;
image_speed = 20;
if (sign(vsp) > 20) image_index = 1; else image_index = 1;
}
else
{
image_speed = 1;
if (hsp == 0)
{
sprite_index = Player;
}
else
{
sprite_index = PlayerR;
}
}
if (hsp != 0) image_xscale = sign(hsp);
for when my player is unarmed but the problem is when i jump(PlayerA) it dosent do the animation it is jumps but my player looks like she is just running in mid air but when I have a gun like my gun script here
if (!place_meeting(x,y+1,WObject)) and WEAPONS_MODE.PLASMA
{
sprite_index = sPGunPlasmaA;
image_speed = 20;
if (sign(vsp) > 20) image_index = 1; else image_index = 1;
}
else
{
image_speed = 1;
if (hsp == 0)
{
sprite_index = sPGunPlasma;
}
else
{
sprite_index = sPGunPlasmaR;
}
}
if (hsp != 0) image_xscale = sign(hsp);
the jump animation works fine
plz help and thank you