wrestitaway
Member
Nothing changed as far as I can tell.
My player can switch between two objects: ob_player and ob_cat. Neither of the objects has the switching ability in them, instead, it's governed by the persistent CONTROL object.
Here's the relevant code:
CONTROL:
Step:
Controlling views
Switching player
I'm not entirely why it won't work and I'm sure there's nothing else "disabling" it. At a loss.
Any help appreciated. Thanks.
My player can switch between two objects: ob_player and ob_cat. Neither of the objects has the switching ability in them, instead, it's governed by the persistent CONTROL object.
Here's the relevant code:
CONTROL:
Step:
Controlling views
GML:
if instance_exists(ob_player)
{
view_visible[0] = true;
view_enabled = true;
view_visible[1] = false;
}
else
if instance_exists(ob_cat)
{
view_visible[0] = false;
view_enabled = true;
view_visible[1] = true;
}
GML:
if keyboard_check_pressed(vk_space) and instance_exists(ob_player)
{ with ob_player instance_change(ob_cat,true);
}
else
if keyboard_check_pressed(vk_space) and instance_exists(ob_cat)
{ with ob_cat instance_change(ob_player,true);
}
Any help appreciated. Thanks.