Possible to mask an area?

Post your help queries and engine programming questions here

Possible to mask an area?

Postby RiaanPie » Mon Dec 19, 2016 3:31 pm

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
Posts: 20
Joined: Fri Jul 22, 2016 2:20 pm

Return to Help & Questions

Who is online

Users browsing this forum: Bing [Bot] and 1 guest