carenalgas / popochiu

Godot plugin to make point-and-click adventure games, inspired by tools like Adventure Game Studio and PowerQuest.
https://carenalgas.github.io/popochiu/
MIT License
203 stars 19 forks source link

C.Grab() and C.Place() virtual methods #137

Open stickgrinder opened 11 months ago

stickgrinder commented 11 months ago

What's the expected benefit of the feature you are requesting?

A sibling of #136, this idea's goal is to reduce boilerplate code used to bring a prop into the inventory, and vice-versa.

Describe the solution you'd like

The two virtual methods mentioned in the issue title would allow one to automagically collect a prop into the inventory or place an inventory item in the scene as a prop.

Mapping props to items and back can be done with a progressive specification of parameters:

Describe alternatives you've considered

Boilerplate code.

Additional context

The Grab() method is already available on the character, but it does nothing.

anthonyirwin82 commented 1 month ago

C.Place() could be confusing as place is also a location. C.Drop() may be better as it has one meaning.