Page 1 of 1

painting in construct

PostPosted: Wed Jul 27, 2016 5:59 am
by pillaystation
I want to make a smear effect like they show in this video https://www.youtube.com/watch?v=xvyrzwwU1DE at around 6:10. but I don't know how to make it so it doesn't clear the last frame.


I did this in a html game by just removing the canvas(it did that smearing effect)....but if I try to get rid of the canvas in construct it just goes black(it doesn't do that smearing)....

Re: painting in construct

PostPosted: Wed Jul 27, 2016 6:39 am
by zenox98
pillaystation wrote:I want to make a smear effect like they show in this video https://www.youtube.com/watch?v=xvyrzwwU1DE at around 6:10. but I don't know how to make it so it doesn't clear the last frame.


I did this in a html game by just removing the canvas(it did that smearing effect)....but if I try to get rid of the canvas in construct it just goes black(it doesn't do that smearing)....


@pillaystation

You have asked this question in the - now retired - Construct Classic section rather than the Construct 2 section.

Was this intentional?

Re: painting in construct

PostPosted: Wed Jul 27, 2016 5:11 pm
by pillaystation
Yes this was intentional....when I said I used html...this has nothing to do with construct2....I was just giving an example of how I did that smearing effect in a game aside from using the game engine construct(I just used a text editor and html and the smearing effect worked).

Re: painting in construct

PostPosted: Wed Jul 27, 2016 5:39 pm
by R0J0hound
You can't disable clearing without modifying the source code I suppose.

Another idea is to utilize the "grab layout" (or whatever it was called) property of the canvas object. At least as I recall that's the closest feature I can think of. I'm going off memory though.

Re: painting in construct

PostPosted: Wed Jul 27, 2016 11:54 pm
by pillaystation
when I use "grab layout" do I chose before drawing or after drawing?...I can't get it to work using any of the options.Do you have an example? I looked in the forums on this but I still can't understand...

Re: painting in construct

PostPosted: Thu Jul 28, 2016 2:56 am
by R0J0hound
I don't have an example, sorry. That was just an idea. I guess you could paste a layer too.

It's been a while since I've used cc.

Re: painting in construct

PostPosted: Thu Jul 28, 2016 5:12 am
by pillaystation
thanks. I'm curious how I would modify the source code. I have already downloaded it on source forge but I don't know what file to modify...I was thinking it would be in the Runtime folder and I would have to modify on of the CDisplay files to disable clearing but this is a VERY wild guess...I can't read c++ very well...so I wouldn't know.

I haven't done much with layers...after I create another layer...what would I do?

Re: painting in construct

PostPosted: Thu Jul 28, 2016 6:24 pm
by R0J0hound
To modify the source code you'll have to find where it clears. This usually means following out functions in the source. Typically it all starts in main(). This can time consuming to do but you get faster at it. Then to compile it you need Visual Studio 2008, and the directX runtime, but that is usually where people give up. Using a different version of Visual Studio has incompatibilities that would have to be changed.

Back to your original question though you can do it with a canvas and the paste action. Basically every frame paste all the objects you want to draw. There may be features that make it easier but I don't mess with Construct Classic any more so I don't know them.