I'm new in this forum and I'm creating a game using the BGE and I would like to add a special skill to my character : to swallow any object with the propety P and then later, to spit out these objects (but I'll see this part after).
So, here is the "script" I was thinking of for the first step of my mechanic :
if raycast and mouseclick are actives : hitObject parent to Player + hitObject not visible.
But actually I don't use very often the python scripts, and I don't know the actual code lines to use to make it work, so it would be nice if someone helped me.
Thanks to anyone who will answer me, and if I wasn't clear enough please ask me to explain.