Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualburnt_casadilla

Posted 14 August 2012 - 08:32 PM

What i really wanted to do is store each rectangle in an array every time a new ball was created and then call the rectangle from the array each time the updateGame method was run to check for a collision. I think itd help me learn arrays better by learning how to call each object in the array and maybe itd be easier for me to understand for now

i understand what youre saying by putting the method in the updateGame method, but it makes more sense to me to store each rectangle created so i can call the location of each rectangle for debugging purposes just to make sure it works

maybe it just makes more sense to me that way because everything is stored in an array and everything can be called from that array when its needed. but honestly i really dont know why that makes more sense :P

#2burnt_casadilla

Posted 14 August 2012 - 08:29 PM

What i really wanted to do is store each rectangle in an array every time a new ball was created and then call the rectangle from the array each time the updateGame method was run to check for a collision. I think itd help me learn arrays better by learning how to call each object in the array and maybe itd be easier for me to understand for now

i understand what youre saying by putting the method in the updateGame method, but it makes more sense to me to store each rectangle created so i can call the location of each rectangle for debugging purposes just to make sure it works

#1burnt_casadilla

Posted 14 August 2012 - 08:27 PM

What i really wanted to do is store each rectangle in an array every time a new ball was created and then call the rectangle from the array each time the updateGame method was run to check for a collision. I think itd help me learn arrays better by learning how to call each object in the array and maybe itd be easier for me to understand for now

PARTNERS