-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Areas work weirdly when scaling on children objs #523
Milestone
Comments
GameObj<AreaComp> does not update when ancestors are updated. Example: kaplay();
debug.inspect = true;
const container = add([pos(center())]);
const shape = container.add([area(), rect(20,20)]);
wait(1, () => {
container.moveTo(vec2(10,10))
}); After one sec, if one hovers over the rect shown, nothing happens. If one hovers over the original position near the center, the inspector shows the data for the shape. |
This is a known issue in master since September. I just haven't gotten to
it yet.
…On Tue, 18 Feb 2025 at 07:10, Suave ***@***.***> wrote:
GameObj<AreaComp> does not update when ancestors are updated. Example:
kaplay();
debug.inspect = true;
const container = add([pos(center())]);const shape = container.add([area(), rect(20,20)]);
wait(1, () => {
container.moveTo(vec2(10,10))});
After one sec, if one hovers over the rect shown, nothing happens. If one
hovers over the original position, the inspector shows the data for the
shape.
—
Reply to this email directly, view it on GitHub
<#523 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHIYW6RWXSHH3NU6Q7C6RT2QJM47AVCNFSM6AAAAABSCP3NB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRUGE2DSMZYGQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
[image: KeSuave]*KeSuave* left a comment (kaplayjs/kaplay#523)
<#523 (comment)>
GameObj<AreaComp> does not update when ancestors are updated. Example:
kaplay();
debug.inspect = true;
const container = add([pos(center())]);const shape = container.add([area(), rect(20,20)]);
wait(1, () => {
container.moveTo(vec2(10,10))});
After one sec, if one hovers over the rect shown, nothing happens. If one
hovers over the original position, the inspector shows the data for the
shape.
—
Reply to this email directly, view it on GitHub
<#523 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHIYW6RWXSHH3NU6Q7C6RT2QJM47AVCNFSM6AAAAABSCP3NB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRUGE2DSMZYGQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
--
Kind Regards,
Marc Flerackers
Software Engineer
|
Until it's fixed, you can give the parent an area and it will work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a parent object has a children object, and the children object has an area, if you change the scale of the children object its area will get disabled somehow
If children object changes the pos, position of the area will stay instead of moving with children
This happens since kaplay v4000 alpha 11 i think, probably this commit 56340e4 since it's the only one since alpha 10 and 11 that changes stuff related to area
2024-11-19_11-07-04.mp4
The text was updated successfully, but these errors were encountered: