Items generated by addLevel are not unique? #161
joshuacurtiss
started this conversation in
General
Replies: 1 comment 1 reply
-
If it involves dynamic content, can pass a function that returns the comp array. It'll be evaluated on every instance. "#" : () => [
comp(rand()),
"tag",
], |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone. I thought I'd just bounce this off you before making an issue. I've been trying to generate interactive items (enemies, coins) on maps using the
addLevel()
functionality that enables you to generate items based on the characters on your map. However, when I do that, animations and other actions seem to be linked to all the items instead of individual to each generated item. Is this by design? I just figured out that I can get around it by using my own routine for finding andadd()
ing items explicitly. Thoughts?Thanks, I'm loving the framework. Using the standard 0.5.1 on npm, by the way.
Josh
Beta Was this translation helpful? Give feedback.
All reactions