Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Elastic hard to replicate, in games
Australia
Tw1tchy
Posted: Feb 23 2008, 03:02 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


but i has did it

me is soon making game with elastic

me lose so much brain cells working out how to make elastic, me forget grammar

Fixed link:http://www.box.net/shared/qkof6s38cc

This post has been edited by Tw1tchy on Feb 23 2008, 04:47 AM


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
United States
Vorxis
Posted: Feb 23 2008, 03:02 AM
Quote Post


THE OH-SO-SNAKE ATTACKS


Group Icon
Group: Members
Posts: 23054
Member No.: 620
Joined: 26-September 04

Status: (0d) [--]


QUOTE (Tw1tchy @ Feb 23 2008, 03:02 AM)
but i has did it

me is soon making game with elastic

me lose so much brain cells working out how to make elastic, me forget grammar

user posted image

user posted image


--------------------
user posted image
QUOTE (Toadster @ Jul 10 2009, 04:29 PM)
i don't give a Toad

VISIT THE IRC
REF ZaeChannel
PMEmail PosterAOLMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 03:05 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


QUOTE (Zae @ Feb 23 2008, 03:02 AM)
user posted image

user posted image


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
United States
Vorxis
Posted: Feb 23 2008, 03:07 AM
Quote Post


THE OH-SO-SNAKE ATTACKS


Group Icon
Group: Members
Posts: 23054
Member No.: 620
Joined: 26-September 04

Status: (0d) [--]


QUOTE (Tw1tchy @ Feb 23 2008, 03:05 AM)
user posted image

You missed it!


--------------------
user posted image
QUOTE (Toadster @ Jul 10 2009, 04:29 PM)
i don't give a Toad

VISIT THE IRC
REF ZaeChannel
PMEmail PosterAOLMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 03:08 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


QUOTE (Zae @ Feb 23 2008, 03:07 AM)
You missed it!

missed what?


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 03:25 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


ty for telling me over skype lol

BUT PEOPLE!!!

CHECK THIS OUT


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 04:32 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


guys? what should i add to this?


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Canada
DJ Yoshiman
  Posted: Feb 23 2008, 04:34 AM
Quote Post


My post is to the right.
[M][S][*][*][*]
[*][*][*][*][*]
[*][*]

Group Icon
Group: Moderators
Posts: 18175
Member No.: 141
Joined: 16-November 03

Status: (0d) [--]


I don't think a lot of people have commented because the download doesn't work - AKA the server sucks.


--------------------

user posted image

The Music of DJ Yoshiman - Official Website

Latest News:
I Like To Bonk It Bonk It

NUMBER OF TRIALS:
12
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
AquaMan
  Posted: Feb 23 2008, 04:35 AM
Quote Post


Ernie bought the lemons from MY store
[*][*][*][*][*]
[*][*][*][*][*]
[*][*][KFC]

Group Icon
Group: Members
Posts: 21894
Member No.: 78
Joined: 16-October 03

Status: (0d) [--]


Hey yea

it's borken


--------------------

user posted imageuser posted image
MegaMan Starforce 2 OH SNAP: 197717329915
PMUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 04:39 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


ok wtf,

ill re-upload it but i wonder why it did that


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 04:48 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]




--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Canada
DJ Yoshiman
  Posted: Feb 23 2008, 04:53 AM
Quote Post


My post is to the right.
[M][S][*][*][*]
[*][*][*][*][*]
[*][*]

Group Icon
Group: Moderators
Posts: 18175
Member No.: 141
Joined: 16-November 03

Status: (0d) [--]


Wow! Nicely done!



Now add a second elastic above it so that it'll bounce between the two elastics.


--------------------

user posted image

The Music of DJ Yoshiman - Official Website

Latest News:
I Like To Bonk It Bonk It

NUMBER OF TRIALS:
12
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 04:55 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


QUOTE (DJ Yoshiman @ Feb 23 2008, 04:53 AM)
Wow! Nicely done!



Now add a second elastic above it so that it'll bounce between the two elastics.

oooohhhh

very hard to do but awesomeness


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Unspecified
AquaMan
Posted: Feb 23 2008, 04:58 AM
Quote Post


Ernie bought the lemons from MY store
[*][*][*][*][*]
[*][*][*][*][*]
[*][*][KFC]

Group Icon
Group: Members
Posts: 21894
Member No.: 78
Joined: 16-October 03

Status: (0d) [--]


Holy physics!

Slingshot 8))


--------------------

user posted imageuser posted image
MegaMan Starforce 2 OH SNAP: 197717329915
PMUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 05:03 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


QUOTE (MegaMan @ Feb 23 2008, 04:58 AM)
Holy physics!

Slingshot 8))

8))))


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 05:09 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


getting... complicated...

CODE
   if (released) {
       ball.x += vel.x;
       ball.y += vel.y;
   }
if (ball.y<=point3.y-ball.sprite_width/2) && (ball.x>=point3.x-ball.sprite_width/2) && (ball.x<=point4.x+ball.sprite_width/2){
       forced2 = true;
       x1= ball.x-point3.x;
       y1= ball.y-point3.y;
       x2= point4.x-ball.x;
       y2= point4.y-ball.y;
       distance1= sqrt(x1*x1+y1*y1);
       distance2= sqrt(x2*x2+y2*y2);
       angle1 = arctan2(y1, x1);
       angle2 = arctan2(y2, x2);
       xOffset= cos(angle1+pi/2)*radius;
       yOffset= sin(angle1+pi/2)*radius;
       xOffset2= cos(angle2+pi/2)*radius;
       yOffset2= sin(angle2+pi/2)*radius;
       angle1 += sin(radius/distance1);
       angle2 += sin(radius/distance2)*-1;
       elastic2.draw=1
}else{
   elastic2.draw=0
   forced = false;
   forced2 = false;

}

       if (ball.y>=point1.y-ball.sprite_width/2) && (ball.x>=point1.x-ball.sprite_width/2) && (ball.x<=point2.x+ball.sprite_width/2){
       forced = true;
       x1= ball.x-point1.x;
       y1= ball.y-point1.y;
       x2= point2.x-ball.x;
       y2= point2.y-ball.y;
       distance1= sqrt(x1*x1+y1*y1);
       distance2= sqrt(x2*x2+y2*y2);
       angle1 = arctan2(y1, x1);
       angle2 = arctan2(y2, x2);
       xOffset= cos(angle1+pi/2)*radius;
       yOffset= sin(angle1+pi/2)*radius;
       xOffset2= cos(angle2+pi/2)*radius;
       yOffset2= sin(angle2+pi/2)*radius;
       angle1 += sin(radius/distance1);
       angle2 += sin(radius/distance2)*-1;
       elastic.draw=1
   } else {
   elastic.draw=0
       forced = false;
       forced2 = false;
   }
   acc.x = 0;
   acc.y = 0;
   acc.y = gravityv;
   if (released && forced) {
       /* This section applies the force of the sling to the ball in terms of acceleration based on the stretching of
       the sling, in the direction of the displacement, scaled by a coefficient that also encapsulates the mass of
       the ball. */
       acc.x += distance1*sin(angle2)*elasticCoefficient;
       acc.y += -distance1*cos(angle1)*elasticCoefficient;
       acc.x += distance2*sin(angle1)*elasticCoefficient;
       acc.y += -distance2*cos(angle2)*elasticCoefficient;
   }
   if (released) {
       vel.x += acc.x;
       vel.y += acc.y;
   }
   
       if (released && forced2) {
       acc.x += distance1*sin(angle2)*elasticCoefficient;
       acc.y += distance1*cos(angle1)*elasticCoefficient;
       acc.x += distance2*sin(angle1)*elasticCoefficient;
       acc.y += distance2*cos(angle2)*elasticCoefficient;
}


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
France
Ice_Hedgehog22
Posted: Feb 23 2008, 05:12 AM
Quote Post


Standard Member
[*][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 23481
Member No.: 23
Joined: 13-October 03

Status: (71582624m) [XX]


I got an error! cool2.gif
PMEmail Poster
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 05:15 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


QUOTE (Admiral Delmore @ Feb 23 2008, 05:12 AM)
I got an error! cool2.gif

what?!?

how?


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
France
Ice_Hedgehog22
Posted: Feb 23 2008, 05:15 AM
Quote Post


Standard Member
[*][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 23481
Member No.: 23
Joined: 13-October 03

Status: (71582624m) [XX]


QUOTE (Tw1tchy @ Feb 23 2008, 05:15 AM)
what?!?

how?

Dunno, crashes as soon as I open it.
PMEmail Poster
Top
Australia
Tw1tchy
Posted: Feb 23 2008, 05:17 AM
Quote Post


WHAAAAAT?
[*]

Group Icon
Group: Members
Posts: 177
Member No.: 4283
Joined: 21-August 07

Status: (0d) [--]


QUOTE (Admiral Delmore @ Feb 23 2008, 05:15 AM)
Dunno, crashes as soon as I open it.

oh... kay...?

this works on vista, xp and not mac of course.

you have a mac user posted image?


--------------------
QUOTE (Mecha @ Oct 7 2007, 11:15 PM)
I just kinda pull stuff out of my ass :X 


~~~REF~~~
This (Thank you lakiplant)
His name is Trashmun


People I've drawn: DemonLemon Yoshbert 1-Ups MikauDemonlemon and LakiplantPhage and Derrike


People Who've drawn me: Lakiplant (Wow)Croshi (user posted image)

user posted image
PMEmail PosterMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0798 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.54 ]