Hi, I like to create rectangular sprites with dynamic width and add an image on to it.
also, this sprite need to have a collision object and it needs to fit with the sprite’s width and height
my game similar to https://britzl.github.io/Towerz/ and boxes width should be dynamic.
when create an instance using “factory.create(component, p,null, { maxPosition = maxxxPostion,blockSize=52 },vmath.vector3(0.4, 0.4, 1))” function, it should be create new instance according to the blockSize parameter
How I do this? is there any example I can refer.