How do I create a world of goo mouse effect?

Get help using Construct 2

Post » Fri Jan 13, 2017 11:06 pm

"Force own texture" draws the layer to it's own texture first as opposed to directly to the canvas. For it's uses do a forum search for it for lots of examples.

Also here's an example of a continuous blob.
https://dl.dropboxusercontent.com/u/542 ... 0blob.capx
It's not really trig, it's more just interpolating between the old and positions of the mouse and setting the size accordingly.

Notice when moving fast you can see the polyline path of the mouse. It can be made smoother by using a cubic interpolation between the points. However, I haven't the time to do it today.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Post » Fri Jan 13, 2017 11:22 pm

holy crap that's incredible. @R0J0hound excellent! yea i don't think i'd have ever come up with a system like that for sure. Thanks for that!

It's fascinating to see what is possible with C2 that at first I think.. i'm not sure that's possible.. way cool.

Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Sat Jan 14, 2017 12:39 am

here I did it with lines, its a bit rough could do with some more tweaking and ive drawn between the last two balls instead of the curser ball so that would need to be sorted. didn't do the outline this time..

but no more balls.....

https://www.scirra.com/arcade/other-games/goo-two-14408

@R0J0hound and I must thank R0J0hound as well as I was using this as an excuse to try the function call idea he gave me earlier. and it worked a treat. cheers.....

looks like I need to update C2 to see what R0J0hound did for this ..... damn
...
B
44
S
23
G
7
Posts: 286
Reputation: 7,985

Post » Sat Jan 14, 2017 3:32 am

that looks really sharp also. is there a way to get rid of the dot though?

Image
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Sat Jan 14, 2017 10:28 am

hey , freezeframe...I feel exposed....Yea , that dot is the curser sprite. i was testing different things and forgot to change before i uploaded.

Currently its drawing between the last two sprite2 points spawned.

Instead just change the objects in the drawline function to the last sprite2 point spawned, and the curser sprite (sprite).

Also, it looks like the ball sprites are not centred ...sloppy work indeed

Ill update the arcade files later

Cheers..
...
B
44
S
23
G
7
Posts: 286
Reputation: 7,985

Post » Sat Jan 14, 2017 11:35 am

@netone lol no it's great i just wasn't sure if that was something that was a side effect of that particular approach. I figured there must be a way to hide that one dot. Thanks for confirming! :)
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Sun Jan 15, 2017 1:14 am

here updated with capx, I had to delete the last one as the scirra arcade got a bit confused,,,,

you could probably play with the valies a bit to make it a bit cleaner....

it doesn't look as organic as R0J0hound amazing way of doing it with lerp. But it probably uses a less sprites. also if you wanted it really smooth you could lerp a few joining sprites together and taper them from one size to the other. or the ultimate, as R0J0hound suggested, do some interpolating of the curve and create more points where needed. That's a little past my noobie capabilities presently though I'm afraid........ :(

https://www.scirra.com/arcade/other-gam ... rser-14435
...
B
44
S
23
G
7
Posts: 286
Reputation: 7,985

Post » Sun Jan 15, 2017 6:35 am

simply badass! :)
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Sun Jan 15, 2017 10:42 am

Dude. I just looked at a real world of goo video and the curser looks nothing like this!!!

The tail is kept short and consistent and there are no trailing balls, hmmm there is something else going on there.....this is not over yet.....
...
B
44
S
23
G
7
Posts: 286
Reputation: 7,985

Post » Sun Jan 15, 2017 11:09 am

nice
B
11
S
3
G
1
Posts: 13
Reputation: 1,298

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Fenix18, Matei511, pose1233 and 43 guests