I just posted what i’ve been working on not too long ago.
I’m kind of having trouble though, I’m trying to get the user to input a number from 1 through 9 and have those spheres show up on the screen. But im gettng an array Index out of bounds error which means im probably adding more things into an array that i havent defined the length to.
I have an array of springs that i define as ‘ Spring springs; ‘ but i dont give it a length until the user has pressed a number value. I fixed the ascii numbering so i know im working with numbers instead of ascii values, but its still giving me this error. Can anyone help me out? thanks =)
EDIT: another problem i ran into. I want the user to be able to set the velocity for the spheres. But when i press the specific key button (a for lower and s for higher) it resets it self to where it started initially…and i dont want that ='( I want it to continue ‘springing’ around with a slower or faster K. If i can get help with this i can get a lot of other things cleared up like shape size and stuff. thanks again =)