Hello, I have encountered a small error here. Im sure its something obvious but I can't figure out what I am doing wrong. Basicly I want it so when you are in a certain area and press 'e' you can access a purchase terminal on my game.
This is the code, it currently it brings up an error message.
onClipEvent (enterFrame) {
if (Key.isDown(69)){ and if (this.hitTest(_parent.player1.collect)) {
_root.terminal.gotoAndStop(2);
_root.player1.speed = 0;
}
}
Thanks for any help