Search the Community
Showing results for tags 'erase'.
-
hi there i got an idea for a game, but i need to figure it out how to program it. what if i have a window asset and i want to clean it using the mouse? it is possible using phaser? how i can clean it and know how mmany percentage of the window is clean?
-
Hi, I have been using Pixi.js for a few months now and I am wondering if it is possible to erase lines drawn on a PIXI.Graphics object. Basically I have some functionality where I am able to draw on a Graphics object on a Sprite using mouse and touch events. My issue is that the sprite has a texture which is not just 1 color. If the texture was blue I would just draw with blue color to "erase" the lines i had drawn earlier with another color. If I was not using Pixi.js I could use the functionality shown here: http://cssdeck.com/labs/jwvajze4/ This eraser functionality is excactly what I need, but I need it in Pixi.js. Is it possible to adapt this same functionality in Pixi.js? Any suggestions or tips would be great.
-
hi there people, im just wondering about a way to erase certain parts of a sprite, how i can do that in phaser? any idea or example will be very helpful!
-
Hello, I'm wondering how to erase something from a rendertexture. I don't want to clear the whole thing and it might not necessarily be a rectangle. (for rectangles I found http://www.html5gamedevs.com/topic/9031-trying-to-build-a-paint-application-with-pixi/#entry54977) Usually I would try to disable all blendmodes and draw transparent stuff onto the rendertexture, but blendModes.NORMAL still does alpha blending, so it doesn't change anything to the texture. Is there a way of doing this? EDIT: For the WebGL renderer I discovered that this works: renderer.renderSession.gl.disable(renderer.renderSession.gl.BLEND);//draw with alpha 0renderer.renderSession.gl.enable(renderer.renderSession.gl.BLEND);How would you do it with the Canvas renderer? Thanks