SRL Archive - Other Scripts

Bouncy Balls


Yakman

2007-05-14 17:31:08

Check out this animation,
unlike that LSD one, you can do more than watch, click and drag around, go crazy,
it has a form with mouse events, randomly colored balls,

hopefully this will help some of you learn canvasses and forms,
and maybe the people at moparisthebest will rep me some more..

enjoy!

bullzeye95

2007-05-14 17:38:12

Ohh nicely done! Awesome xD. Wonderful! Amazing! I ran out of words! Still wanna type!

Wizzup?

2007-05-15 02:35:56

You beat me there Yakman, this is what I wanted to make in the end..
I guess I'll just switch to pong. :)

EDIT: Do they accelerate/get accelerated by the mouse?

PwNZoRNooB

2007-05-15 07:53:39

Whoa man!
This is so cool :D
Nicely done.

Yakman

2007-05-15 09:07:03

From: Wizzup?
EDIT: Do they accelerate/get accelerated by the mouse?


when they change direction, their speed randomly changed, otherwise they end up bunched up and it looks really rubbish

joshie

2007-05-15 10:45:44

woh, imagine doing this when you're high, SWEET!=p

dialeyj2

2007-07-07 12:58:04

From: joshie
woh, imagine doing this when you're high, SWEET!=p


lol…nice script

zxcvbghjklyu

2007-08-22 22:48:42

cool!

jhildy

2007-08-25 13:31:52

don't touch the mouse and just watch it it looks sick.

Dan Cardin

2007-08-25 15:30:11

i wasted like 20 mins of my life using that thing lol.

yakman-(a game i would suggest making is tetris;), but thats only cuz i want to see it done and i cant do it myself, and cuz itd be cool and cuz ur amazing with these and cuz if u do ill rep u( bet that last 1 was pretty convincing))

gamer716

2007-08-25 19:32:36

wow that cool, something i can never do :(

Bixby Sayz

2011-11-22 20:37:36

Yes, I know this is a gravedig but I have to know how he did this.

I'm reading the script and I see where the balls get drawn, but nowhere do I see anything to erase anything ever. And yet it works. OMG IT'S MAGIC!

nielsie95

2011-11-23 14:21:51

He uses the canvas of the form, which is cleared with a repaint. In the repainting callback, he draws the balls (and on the timer, he forces a repaint).

Bixby Sayz

2011-11-23 16:32:08

Figured that out later after I posted. Meant to edit my post to reflect that.