You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read and understand the suggestion guidelines
Checked for duplicate suggestions
I checked for existing similar suggestions
Summary
similar to sprite(iid).x it would be amazing to have the same functionality for uid.
Possible workarounds or alternatives
writing return functions for the specific properties you want to access by uid or using addons like UID TO ANYTHING by Overboy
Proposed solution
Same as objectType(iid).whatever but using uid.
To differenciate between the two it would use square brackets objectType[uid].whatever
Why is this idea important?
While the picking system is often very helpful, it sometimes makes certain logic extremely complicated. Accessing instances in expressions by their uid would allow a great amount of flexibility!
Additional remarks
No response
The text was updated successfully, but these errors were encountered:
F3der1co
changed the title
acces instances by uid in expressions: sprite[UID].x
access instances by UID in expressions: sprite[UID].x
Sep 19, 2024
Scirra/Construct-bugs#7028
This was brought to my attention, so maybe a different syntax can be used. For example sprite(uid: 123).x. I don't know how the c3 expression lexer works, so I can just guess what would be feasible to implement.
Reviewed guidelines
Checked for duplicate suggestions
Summary
similar to sprite(iid).x it would be amazing to have the same functionality for uid.
Possible workarounds or alternatives
writing return functions for the specific properties you want to access by uid or using addons like UID TO ANYTHING by Overboy
Proposed solution
Same as
objectType(iid).whatever
but using uid.To differenciate between the two it would use square brackets
objectType[uid].whatever
Why is this idea important?
While the picking system is often very helpful, it sometimes makes certain logic extremely complicated. Accessing instances in expressions by their uid would allow a great amount of flexibility!
Additional remarks
No response
The text was updated successfully, but these errors were encountered: