Hello, I managed to work out how pop-up text appear when you collide with the object or when you pressed a key, but i want to like when you press the same key the text will disappear.
So when you 1st pressed “t” the text appears and stays. Then press “t” again the text will disappear.
if(talkKeyDown == true){
if(charMC.hitTestObject(back.other.doorLvl)){
doorNote.text = "Door is locked!";
}
} else if (talkKeyDown == false) {
doorNote.text = ""; // text appear when i released the key, not the thing I wanted to do.
}