Official canvas plugin?

0 favourites
  • 5 posts
From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • I've been working on a few tile-based games in C2 for a while now and performance, after doing every trick in the book, is not very good. This is due to the hefty amount of sprite objects acting as tiles.

    We need some sort of canvas plugin to paste tiles into prior to destroying them, converting hundreds if not thousands of objects into a handful of larger images which drastically increases performance.

    I used to do this with R0j0hound's canvas plugin but from what I've gathered it's not WebGL compatible and causes memory leaks when doing this. Doesn't look like it'll be fixed any time soon..

    Ashley That said, have you guys ever considered hiring someone to write an official canvas plugin as you did for spritefont? This is only one of the many, many uses for it!

  • You can avoid the performance hit the canvas object causes with webgl by keeping it invisible, pasting to it at the start of layout, the having a sprite load its image.

    However, it's been around long enough and still not gained webgl support that I have to agree - it would be nice to have a webgl compatible canvas plugin.

  • Yeah I did that but there seems to be a memory leak too :T

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The problem is a lot of the features <canvas> gives aren't easily implemented into webgl, things like paths, curves etc.

    On the other hand some of the functionality you are looking for already exists, but its pretty limited, IE snapshot canvas.

    The question is what other functionality is available?

    Or is there some happy medium, such as the ability to snapshot certain areas of the screen, and or if we aren't able to draw curves, could we perhaps draw lines, or even just plot pixels like in Construct Classics Canvas?

  • Honestly the drawing stuff is the least useful imo. Not many games use stuff like that, whereas almost every game out there can make use of pasting and the rest. What about an action to bake textures?

    Create tiles

    Bake tiles, omitting special ones

    Destroy tiles

    Aw yiss. 60 fps.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)