Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
Spcefic this time
Author Message
Alexx

Posted: Sun Apr 18, 2004 1:17 pm   Post subject: Spcefic this time

Sorry man i don'y know the rule of this site cus that was my first time.
i mean when the original ball touch any corner then one more ball appear unles user quit.

gamer

Posted: Sun Apr 18, 2004 1:25 pm   Post subject: (No subject)

2 things:
dont make another topic like this, just simply post reply on ur original topic

also, wut do u mean "any corner"??
Cervantes

Posted: Sun Apr 18, 2004 1:27 pm   Post subject: (No subject)

flexible arrays.

and you don't need to start a new thread. Nor is "spcific this time" a helpful title. If it were me, I'd have called the first thread something like "ball spawning".
so, to be certain, you want one ball to be bouncing around and then when it hits a corner another ball spawns? and then that ball can also trigger the spawning of a new ball if it hits a corner, just like the original ball?

EDIT: blargh. 2 mins I'm slow
Alexx

Posted: Sun Apr 18, 2004 1:40 pm   Post subject: (No subject)

Cervantes u got it what i mean, but my question is how do i do this. can u tell me easy way that i can do this. thANKS MAN
Cervantes

Posted: Sun Apr 18, 2004 2:25 pm   Post subject: (No subject)

flexible arrays.

you have a flexible array for the x component of a ball, and another for the y component of a ball. it starts from 1 .. 1. you have an if statement to determine whther any of the balls (and by balls i really mean the x and y of 1 specific element of your flexible arrays) are in the corner. If they are, then use New ( i think its New) to increase the bounds of your flexible array.
Andy

Posted: Sun Apr 18, 2004 6:02 pm   Post subject: (No subject)

check out my arrays tutorial
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 1  [ 6 Posts ]
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: