Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by dahl

Can the 'main.js' look for and handle variables set inside of Entities?

Thanks.

1 decade ago by Jerczu

Yep... if you set them as object attributes.

1 decade ago by Jerczu

All you need to do is use getentitybytype function and then you can reference any attribute of that object from main.js check the docs for the function name.

1 decade ago by dahl

Thanks Jerczu.

1 decade ago by Jerczu

No problem glad to be of help.

1 decade ago by SlouchCouch

alternatively you could do getEntityByName() so if you have a specific entity you want to operate on you can define its name property. This is handy if you have multiple entities of the same type, but you only want to use the method/properties of a specific one.

name can also be set inside weltmeister which is slick.
Page 1 of 1
« first « previous next › last »