4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
10.81k stars 848 forks source link

Better way to manage object's instances #4303

Open Oxey405 opened 2 years ago

Oxey405 commented 2 years ago

A better way to manage object's instances 💭

So,I think that handling mulitple instances of an object is far too complex. Here is my idea on how to make that process way easier for devs :

Description 📜

GDevelop misses a way to store object references in variables and everything else it implies.

This way gamdevs could store some object and for example deal with multiple pushable objects chain or getting a specific instance aware of where are the other objects of his kind in a certain radius etc...

Solution suggested 💡

New features that should be implemented ⌨:

Alternatives considered 🤔

I think there is no workaround for that. ¯_(ツ)_/¯ Oh and, thanks for reading ! 📖

4ian commented 2 years ago

I think this might be similar to https://trello.com/c/VfginxSG/472-add-actions-to-remember-a-list-of-picked-objects-in-memory-and-pick-them-again-later and a discussion was started here: https://github.com/4ian/GDevelop/discussions/2653

Oxey405 commented 2 years ago

I think this might be similar to https://trello.com/c/VfginxSG/472-add-actions-to-remember-a-list-of-picked-objects-in-memory-and-pick-them-again-later and a discussion was started here: #2653

Looks like it but to my knowledge, this has never been done. I may work on it this weekend

D8H commented 2 years ago

Maybe this extension can help? https://wiki.gdevelop.io/gdevelop5/extensions/object-stack/reference