Binding key to an event

Hello, I'm quite new to RPG maker MV...
I'm looking to learn how to bind a key to an event.

Specifically,
I would like to press a key and transfer the player to a defined location.

I know you can setup portals, that when you overlap it and it transfers to a defined location ...

But I'd like to have transferring bound to a key and have it transferred to a defined location.

Any help would be great.

Thanks
Mawi
can be done in serveral ways, but it would be recommend to do the inbuilt tutorial and some
other tutorials before making those events.

when you know the basics, you also should know how conditional brance work.
you can even make a choice list and define the teleportation in there when selected 1.

if you didn't done the inbuilt tutorial or watch some, you dont understand how conditional branched,
variable or switches work (which can also be quite usefull in this setup).

there are serveral ways to set it up.

1 = Create a commom event,
condition branch: Script: Input.isTriggered('KEY CODE')
tranfer player map, x, y
end
condition branch: Script: Input.isTriggered('KEY CODE')
tranfer player map, x, y
end

Key code can be found on the net, but also through plugin like a keymapping.
which can be used for A, B, C, 1, 2, 3 . input this directly as key code wont work on its own.
Ok that's great thank you.

If you have any suggestions for sites and links to any tutorials, I would be very grateful.
there are to many tutorials online.

start with the inbuilt tutorial, and know the most basic of creating a game.
this will explain how things work. After you compleet it all and understand the basics.

try start with mapping.
when you need something, type in google for example: "puzzle switch tutorial RPG MV"
this will get you some video's on how to do it by some youtubers.

there are mostly 3 or more ways how to get the same result in an event, but its more importantly
that you know how to do it and not just copy/paste the event because sometimes even if it works,
it can gives errors.

Basics can be extended and combined with other events to do an even more complex things.
I'm still learning too, and there is to much you can learn to improve.

Start small, expend later so you can always improve your events.
Don't worry if you make a mistake, search and find, you learn from mistakes.

search the forum for answers, if not here, find online, if not there, ask here =)

Original thread: https://forums.rpgmakerweb.com/threads/binding-key-to-an-event.115104/