Chewing up solids

This forum is currently in read-only mode.
  • Is it possible to punch holes into solids and obstacles which you can go through? In The Games Factory this could be done by "Paste into background" as no obstacle. This lead to two limitations: for it to look convincing, you'd have to have a solid background (with the same color as your hole), and second, it does not get along with screen scrolling.

    Does Construct have such feature? I imagine it'd be near impossible because of the textural nature of the renderer, unless it's one big depth write hack.

  • You can do this with a canvas. There are a few examples of Worms-style games and even platformer stuff that use the canvas for dynamic terrain.

    Large canvases eat up VRAM like candy though, so you have to be careful. You might be able to make a system where the canvas follows the screen and pastes in your background items, then erases the "holes" that have been placed on another layer as sprites.

    I haven't really experimented with this kind of thing, though. Someone else may be able to help you out better

    • blow the thing up
    • paste the hole into a freshly spawned sprite
    • is overlapping solid AND hole sprite > keep moving

    Just an idea.

  • Large canvases aren't too bad on the VRAM (4mb or so for 1024x1024), it depends how you plan to use it.

  • I think ONE BIG canvas will eat much more VRAM than MANY SMALL canvases.

    So you better place in your map many canvases with the screen width and height, like:

    canvas 1:................canvas 2:

    _______________.________________

    |...................|.....................|

    |...................|.....................|

    |...................|.....................|

    |______________|_______________|

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, don't forget to split canvases up, especially if your layout is wider than it is tall.. don't forget also that many graphics cards don't like huge textures.

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