ios - Attaching arbitrary information to an SKSpriteNode -



ios - Attaching arbitrary information to an SKSpriteNode -

i'm making game sprite kit in generate many instances of skspritenode. when observe collision between 2 sprites, can lot of info colliding sprites (position, rotation, scale, etc.).

my question: there way embed arbitrary information, string or integer, sprite? wanted timestamp each sprite time generated, , display when collides something.

uibutton come mind, can define button.tag, , utilize info later.

sknode has userdata dictionary can store data.

ios swift sprite-kit

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -