Circles
Displaying 1-7 of 7 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Voltage

I'm new to coding, and I am trying to figure out how to manipulate items inside a functions parameters. Specifically, I'd like to make a ring grow by changing the radius in the circle(). My code looks something like this:

while(radius



Posted on 2000-11-23 08:50:56

Narad

Narad



Anime . . . nya! =) http://www.geocities.com/narad_mav/Narad-AnimeList.html

Posted on 2000-11-23 12:20:24

Voltage

ok, lets try this again.

void ringgrow
while(radius



Posted on 2000-11-23 22:18:57

Voltage

omg. ok. this is what the code would do: while the int radius is less than one half of the screen, keep increasing the radius of the circle.

I want only a single growing ring to be visible on the screen, but since the previously rendered circles arent unrendered, I'm guessing the circle will appear to be filled. How would I unrender the previous circles? I know that was unclear, any help would be appreciated.

~Voltage





Posted on 2000-11-23 22:20:15

andy

You just have to think a little differently.

Instead of "un-rendering" the circles, simply draw whatever was beneath them on top of the whole mess. This is usually done with Render();, which draws all the tiles and entities.

Alternatively, you could use RectFill(0,0,screenx-1,screeny-1,0); to fill the screen up with black.



'What you get by achieving your goals is not as important as what you become by achieving your goals.' -Zig Ziglar

Posted on 2000-11-23 22:44:38

Voltage

Cool, that worked great. Thanks a lot.



Posted on 2000-11-24 08:57:17

Ear

...using &amp; for &, &lt; for < and &gt; for >. Then again, the board should do this for you or have a feature similar to tVS, but, what can you do?



- Ear

Posted on 2000-11-27 00:55:57


Displaying 1-7 of 7 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.