W
Wild_West
Guest
I'm going through my project and trying to make sure my character can't be allowed to move whenever certain things are going on like item menu being shown, or speaking to NPC characters, and for some reason it's only working half the time.
For example when I speak to ONE NPC I can't move until I'm done talking to them, like I want. But for the others it doesn't work.
I set character_parent.can_move to false in the NPC's code once a conversation starts.
Then the next instance is with my inventory. I have a variable I turn on and off for displaying the character's current list of actions in battle and another showing my inventory, both of these conditions should stop my movement but only the inventory's does.
I've tried moving these to the end step event but nothing changes. Why is this happening?
For example when I speak to ONE NPC I can't move until I'm done talking to them, like I want. But for the others it doesn't work.
I set character_parent.can_move to false in the NPC's code once a conversation starts.
Code:
if( start_conversation )
{
world_inventory_manager.visible = false;
character_parent.can_move = false;
}
else{ character_parent.can_move = true; }
Code:
if( show_actions ){ can_move = false; }