From 33a9df4502edd386d93bed7ac68b8adbc12423fc Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Wed, 18 Sep 2024 08:43:26 -0500 Subject: [PATCH] docs: Update graphics component reference to graphics group --- site/docs/04-graphics/04.2-graphics-component.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site/docs/04-graphics/04.2-graphics-component.mdx b/site/docs/04-graphics/04.2-graphics-component.mdx index 260bd5adc..8901db7f7 100644 --- a/site/docs/04-graphics/04.2-graphics-component.mdx +++ b/site/docs/04-graphics/04.2-graphics-component.mdx @@ -92,6 +92,8 @@ Sometimes you want to draw multiple pieces of graphics at once! There are two re [[GraphicsGroup|Graphics groups]] allow you to compose multiple graphics together into 1. This can be useful if you have multi layered or complex graphics requirements. One limitation however is you can only influence the relative offset from you Actor. +Read more about [graphic group nuances here](/docs/graphics-group). + ```typescript const healthBarActor = new ex.Actor({...}) @@ -111,8 +113,8 @@ const healthBarText = new ex.Text({ const group = new ex.GraphicsGroup({ members: [ - { graphic: healthbarRectangle, pos: ex.vec(0, -70)}, - { graphic: healthBarText, pos: ex.vec(0, -70)} + { graphic: healthbarRectangle, offset: ex.vec(0, -70)}, + { graphic: healthBarText, offset: ex.vec(0, -70)} ] });