W
WWAZman
Guest
after upconverting my GMS1.4 game to GMS2, everything is in code.. most of it is ok, but I can't figure out this part.. What I need to do is, somewhere where my character is noted that dead is true, tell it to then destroy an instance of the arrows_controller (so that it doesn't keep recreating it, which is on the create step of my character - every time he dies I realized another set is recreated, lessening the transparency)
So where can I put in the instance destroy?
So where can I put in the instance destroy?
Code:
action_set_relative(1);
var __b__;
__b__ = action_if(dead);
if __b__
{
action_set_relative(0);
exit;
}
__b__ = action_if_empty(0, 1, 0);
if __b__
{
{
action_set_relative(0);
action_set_gravity(270, 0.4);
action_set_relative(1);
}
}
else
{
{
action_set_relative(0);
action_set_gravity(270, 0);
action_set_relative(1);
}
}
__b__ = action_if_variable(vspeed, 12, 2);
if __b__
{
{
action_set_relative(0);
vspeed = 12;
action_set_relative(1);
}
}
if keyboard_check(vk_up) and jumpcontrol = true
{
vspeed -= 4.2
}
action_set_relative(0);