From f34ab307ecef9146bf555388ba0a97e00f6e6c89 Mon Sep 17 00:00:00 2001 From: isokissa Date: Fri, 8 Nov 2024 16:43:25 +0200 Subject: [PATCH] docs: Fix type in actor children example (#3274) --- site/docs/02-fundamentals/03-actors.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/02-fundamentals/03-actors.mdx b/site/docs/02-fundamentals/03-actors.mdx index 8956bf251..651715ac5 100644 --- a/site/docs/02-fundamentals/03-actors.mdx +++ b/site/docs/02-fundamentals/03-actors.mdx @@ -82,7 +82,7 @@ const parent = new ex.Actor({...}); const child = new ex.Actor({...}); -actor.addChild(child); +parent.addChild(child); ``` 1. Paper doll assemblies - Moving a parent body actor and having child actor arms, legs, head, etc. pieces move.