Constellation Effect
Author |
Message |
Flea
![](http://www.battle.net/war3/images/undead/spells/infernal.gif)
|
Posted: Fri Sep 10, 2004 8:50 pm Post subject: Constellation Effect |
|
|
Hey everyone, before I start anything I'd liek to introduce myself a bit.
I have just finished my first week of gr.11 programming in turing, but i have been visiting compsci.ca for like a year lol. anyway im far ahead of everyone in my class thanks to some wicked tutorials and stuff, not just in turing but flash & photoshop as well especialy. =)
Anyway for fun I'm making a program that draws stars at random places in teh sky, based off of an example on holtsoft.com, but a lot more sophisticated. The stars are all colour 0 and I want to randomly connect the dots with lines, for a constellation effect. I was gonna use "drawline" but i am not sure how make the x, y, x2, and y2 equal to coordinates of the stars. I was thinking on the lines of whatdotcolour but remember its my first week, im not quite gosu yet.
you dont have to give me the code, i can do that myself, but just a pointer or two would be great! =)
thanks,
flea |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
omni
![](http://www.ffonline.com/1_ff8gfx/index-pic1.jpg)
|
Posted: Fri Sep 10, 2004 9:01 pm Post subject: (No subject) |
|
|
well make sure you have an understanding of arrays. Use arrays to hold all the x and y coordinates of the stars, and go from there.
I made a simliar program, called "starfield" I believe, under turing source code, its pretty old though, so u might have to search. My program drew stars and you could control the movment of them. |
|
|
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: Sat Sep 11, 2004 10:04 am Post subject: (No subject) |
|
|
Arrays by Dodge
Arrays by Tony
Math.Distance by Tony (might be useful)
And why do you have -ve bits?? |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Sat Sep 11, 2004 11:49 am Post subject: (No subject) |
|
|
Delos wrote:
And why do you have -ve bits??
He probly deleted a post, there is a bits pnetaly for removing posts on this site. It is to discorge poleop from remvoing there posts after they got help as well as to stop poleop from trying to cheat the bits system. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Flea
![](http://www.battle.net/war3/images/undead/spells/infernal.gif)
|
Posted: Sat Sep 11, 2004 10:04 pm Post subject: (No subject) |
|
|
YES!! It worked =)
Thank you so much, WHAT a huge help that was.. I already had knowledge of basic arrays but none of the syntax whatsoever. tony's array tut is wicked. And so is teh F8 button =P Turing is so much fun.
and yes i deleted my 2nd post. |
|
|
|
|
![](images/spacer.gif) |
|
|