I'm making a adventure game,like those old Lucasarts games. And i would like to request a script where when you press a certain button the characther says something or does something with the event infront of him.
Like for a example. The Hero walks infront of a table, a apple is on the table. By pressing A the hero looks at it: It's a red eatable and very pickup friendly apple. And so by pressing S the hero picks it up. And going into the Inventory by pressing the F button on said item he tries to use/give apple.
And by pressing D he talks to someone. Or well, that doesn't is needed. Since there is already a action button for it.
Like for a example. The Hero walks infront of a table, a apple is on the table. By pressing A the hero looks at it: It's a red eatable and very pickup friendly apple. And so by pressing S the hero picks it up. And going into the Inventory by pressing the F button on said item he tries to use/give apple.
And by pressing D he talks to someone. Or well, that doesn't is needed. Since there is already a action button for it.