Guts

Post your own tutorials, guides and demos.

Post » Sat Feb 07, 2009 9:19 pm

Just a quick test of the graphical effect I'm planning for a little game:

http://willhostforfood.com/users/deadey ... 20test.cap

I need a new Canvas feature though, and I'm hoping someone can help me out? "Paste layer" is what I'm looking for. Unless someone can think of an easy way to paste everything on a layer at once...
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Feb 07, 2009 9:28 pm

[quote="deadeye":1hgf1v45]Just a quick test of the graphical effect I'm planning for a little game:

http://willhostforfood.com/users/deadey ... 20test.cap[/quote:1hgf1v45]
heh, funny organic thinge.
[quote="deadeye":1hgf1v45]
I need a new Canvas feature though, and I'm hoping someone can help me out? "Paste layer" is what I'm looking for. Unless someone can think of an easy way to paste everything on a layer at once...[/quote:1hgf1v45]

Or duplicate/clone layer function would be good.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Sat Feb 07, 2009 9:34 pm

Actually, for what I need it for... nope. I need "Paste layer."

When you put the Warp effect on a layer like I did, then when you scroll it looks like it's warping faster because the "warp field" or whatever doesn't move. So I need a canvas on a layer that doesn't scroll, then I paste the guts into the canvas, and put the warp effect on just the canvas.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Feb 07, 2009 10:24 pm

Well I dont have shaders past 0.0 so Im not sure what the warping does.
I'm assuming it gives like an underwater effect?
Any way I was thinking would it be possible to turn off the effect when its scrolling, then turn it back on when there's no movement?
Image Image
B
161
S
48
G
90
Posts: 7,348
Reputation: 66,751

Post » Sat Feb 07, 2009 10:35 pm

Try a canvas on a top, nonscrolling layer with "grab layout before rendering" set.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Sat Feb 07, 2009 11:16 pm

Doesn't seem to work. If I do that and put Warp on the layer, it doesn't render the warp for some reason. If I put Warp on the Canvas, then when the screen scrolls it looks all fast-warpy anyway. If I stick the canvas on the same layer, and tell it to always set to ScrollX/ScrollY then it doesn't render the warp while the screen scrolls.

Argh, I'm thinking there's no way do the Warp while scrolling without getting that speed-up effect :(
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Feb 07, 2009 11:24 pm

It's fixable from the shader, I'll try sort something out for the next build...
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Sat Feb 07, 2009 11:52 pm

Awesome :). Maybe an Offset setting? So you could do "Warp -> Set offset to ScrollX, ScrollY" That would do it I think. But then there would need to be a way to access effects that have been applied to layers (I don't currently see any way to do so). If the warp thing is updated then I won't need to worry about using a canvas at all.


Anyway, this is just plain trippy :shock: :
http://willhostforfood.com/files4/25246 ... yvilli.cap
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Feb 08, 2009 12:30 am

You've discovered Canvas' second use as an effects processor ;)
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Sun Feb 08, 2009 6:18 am

Wow, this is really neat! And you even called them villi.
B
2
G
4
Posts: 49
Reputation: 1,148

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests