# WORM!

Post your own tutorials, guides and demos.

### » Sat Feb 07, 2009 7:41 pm

click with the mouse to grow the worm, turn him with the arrow keys

its a biproduct of an IK thing i was experimenting with
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

### » Sat Feb 07, 2009 7:57 pm

Byproduct thats more like a mutation.
Awsome effect tho

Also holy fing cow look at this code
[code:3efuputc]System: 3 For each Blue 0
Green: 10 Value 'ID' Equal to blue('ID')+1
> GreenSet position to BLUE.x+(cos(angle(BLUE.x,BLUE.y,Green.x,Green.y)))*(BLUE.width), BLUE.y+(sin(angle(BLUE.x,BLUE.y,Green.x,Green.y)))*(BLUE.width)
> GreenSet angle towards Blue 0
> CanvasDraw rgb(lerp(0,255,green('ID')/green.count),0,lerp(255,0,green('ID')/green.count)) line opacity 100 from (blue.x, blue.y) to (green.x, green.y)
> CanvasDraw rgb(lerp(0,255,green('ID')/green.count),0,lerp(255,0,green('ID')/green.count)) line opacity 100 from (blue.x+(cos(blue.angle-160-blue('ID')))*(blue.width*2), blue.y+(sin(blue.angle-160-blue('ID')))*(blue.width*2)) to (green.x+(cos(green.angle-160-green('ID')))*(green.width*2), green.y+(sin(green.angle-160-green('ID')))*(green.width*2))
> CanvasDraw rgb(lerp(0,255,green('ID')/green.count),0,lerp(255,0,green('ID')/green.count)) line opacity 100 from (blue.x+(cos(blue.angle+160+blue('ID')))*(blue.width*2), blue.y+(sin(blue.angle+160+blue('ID')))*(blue.width*2)) to (green.x+(cos(green.angle+160+green('ID')))*(green.width*2), green.y+(sin(green.angle+160+green('ID')))*(green.width*2))[/code:3efuputc]
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

### » Sat Feb 07, 2009 7:59 pm

Wow I already see some big bad boss for a topdown shooter.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

### » Sat Feb 07, 2009 9:25 pm

It's wiggly!

That's really cool looking. You should team up with someone who knows C++ and help them write your IK stuff into a behavior
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

### » Sat Feb 07, 2009 9:26 pm

That's really cool looking. You should team up with someone who knows C++ and help them write your IK stuff into a behavior [/quote:o8gfk0nw]
yeah this is what i was thinking. this stuff would be perfect for a behavior.
B
2
S
2
G
4
Posts: 254
Reputation: 1,958

### » Sat Feb 07, 2009 9:44 pm

That's really cool looking. You should team up with someone who knows C++ and help them write your IK stuff into a behavior [/quote:119wb27e]
yeah this is what i was thinking. this stuff would be perfect for a behavior.[/quote:119wb27e]

yeah - get someone from gamedev forum maybe?
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

### » Sun Feb 08, 2009 1:12 pm

very nice!
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

### » Sun Feb 08, 2009 4:43 pm

look at my new thread in "your creations" it uses a better version of this

viewtopic.php?f=4&t=2727
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610