How can I set param in function

How can I set param in function that return the item (ZIM general function not in my code)
I want to set the isWall into the line of all the ZIM function.
Maybe that requests?

Sorry... I am a little brain-dead at the moment. Can you describe again?

1 Like

I can now make item.addTo().loc(39,30).scale() in one line on my code.
I ask if i can add variable to that display object in that line.
like:
item.addTo().loc(39,30).scale().addValue("isWall",true);

and don't do:
item.addTo().loc(39,30).scale();
item.isWall = true;

Yes - I think you can use the createjs set() which is chainable, I believe.

1 Like

NICE :slight_smile:
work:

let rect = new Rectangle(100,100).addTo().set({isWall:true,num:100});
zog(rect.isWall,rect.num)

1 Like