Closed tristanbob closed 2 years ago
Hi, I really liked the extension. After playing with it for some time, I have some suggestions
:)
- Providing conditions might be helpful
I'm not sure conditions make sense for an expression, but I might be wrong. What would the conditions be? Do other "expression-only" extensions provide conditions?
- Is it possible to make it calculate with different objects and not only just the same object?
Yes, you would just use an object group instead of a single object.
- The description is a bit short on info
This is a very simple expression (but one that is useful for a lot of reasons.) What do you think would be useful for users? I guess I could explain some use-cases (like flocking behaviors, camera tracking, etc)
As it's a very simple extension I think it's better to keep just the expression. In the future, we'll add a capability so that extensions can declare an expression and automatically get a condition made from it :)
Makes sense
This is a very simple expression (but one that is useful for a lot of reasons.) What do you think would be useful for users? I guess I could explain some use-cases (like flocking behaviors, camera tracking, etc)
Yes, I didn't realize that it can be used for camera tracking until now, so the use case would be useful
:)
This icon looks a bit more suitable yes 👍
Please hold on adding this; I'd like to add some more "related" expressions.
Existing:
New:
Do you have any ideas on other expressions to include?
TopX,TopY, BottomX and Bottom Y?
TopX,TopY, BottomX and Bottom Y?
What is the goal with this? To return the x,y of the top object (and the bottom object)?
I think I am going to add more functions that will help with RTS flocking and unit movement.
Separation: steer to avoid crowding local flockmates Alignment: steer towards the average heading of local flockmates Cohesion: steer to move toward the average position of local flockmates
Adding more to todo list:
NeighborCount
"PrimaryObject"
NeighborObject"
Is there a specific bottleneck or expectation that would help in the implementation of this extension? Part of this was added in your RTS game?
If there is no news within 3 days I'll close the topic and tag the extension as abandoned this Monday.
Eeek, please don't abandon this quite yet. :) I will have a lot more time to work on game dev in about 3 weeks. I'm currently much more busy than normal due to an event-based commitment.
When I get time, I will focus on finishing this extension (and perhaps others) before doing fun new stuff. Thanks Bouh!
I think I'm done for now. :) Let's get the review process started. Thanks for bearing with me!
Provides average values of a group of objects. Useful for camera tracking, AI flocking behaviors, and more.
Included expressions:
Center position (mean)
Center position (medium)
Based on center of object:
Based on AABB of object:
Minimum X position of a group of objects
Maximum X position of a group of objects
Minimum Y position of a group of objects
Maximum Y position of a group of objects
Average horizontal force (X) of a group of objects
Average vertical force (Y) of a group of objects
AverageValuesOfObjects_Extension_1.0.0.json.zip
https://games.gdevelop-app.com/game-c418ef6d-93bc-4564-92b0-826625751ec1/index.html
Hi @tristanbob ! 👋 This submission has been moved to a PR as part of our submission pipeline. Please continue the submission process on this page. Thanks!
Describe the extension
Provide X and Y position values for the center of a group of objects.
Checklist
Play here
https://games.gdevelop-app.com/game-23fde65c-7992-4ba6-9219-d90b670867bf/index.html
Extension file
FindCenterOfObjectsExtension_0.1.5.json.zipProject files
FindCenterOfObjects.zipVideo
https://user-images.githubusercontent.com/8879811/126047490-c6a19718-574f-4c17-8a6d-bd5b0aac7129.mp4