E
EZTALES
Guest
hey yall,
I need some help with a small issue I'm having with turning off/on activation. basically I have my player touch a door object, which the code for is down below.
code for playeract is down below. playeract is basically a toggle to see if instance_activate is on or off for the player.
and finally the step event for my cutscene room.
basically, when the room ends i want to go back to the previous room (---->rm_workplace_1 is the previous room <----) and reactivate the player. everything works up until the part where the player is reactivated because when the cutscene is over the player is completely gone from the room and I can't for the life of me figure out why. if anyone has any idea hmu. thanks!
I need some help with a small issue I'm having with turning off/on activation. basically I have my player touch a door object, which the code for is down below.
Code:
Collision Event with obj_player (this is drag and )
set variable obj_player_stats.playeract to false
Go to room rm_workplace_cutscene
Code:
///player activation
if (playeract != true) {
instance_deactivate_object(obj_player);
}
else
{
instance_activate_object(obj_player);
}
Code:
STEP EVENT FOR CUTSCENE
if (currentMsg == ds_list_size(msg)) //if we're out of messages
{
ison=false
ds_list_destroy(msg); //release the memory
instance_destroy(); //destroy the message object
obj_player_stats.playeract = true
room_goto(rm_workplace_1)
instance_destroy(obj_wall_2)
}