Page 1 of 1

Possible to mask an area?

PostPosted: Mon Dec 19, 2016 3:31 pm
by RiaanPie
Hi there.

I have created a second viewport for my canvas element and I can display an animated sprite etc in it. I am also able to position it on the stage and have it scale with everything else.

My questions:
- Is this the right way to go to create a masked area in Isogenic?
- I am left with a background colour in my viewport - is there any way to set it to "transparent" ?

Code: Select all
self.trainScene = new IgeScene2d()
                        .background('transparent') // this is causing error output
                        .translateTo(-70, -300, 0);

new IgeViewport()

self.train = new IgeEntity()
                        .texture(textures[31]) // .476