
-----------------------------------
Mr. T
Mon Oct 17, 2005 5:50 pm

Jezzball Help - Arrays
-----------------------------------
I incorporated an array of coordinates for the creation of walls...but the array does not seem to add an new element to itself, even though I used the new function.  Can anyone figure out why?

-----------------------------------
bass_maniac
Tue Oct 18, 2005 11:57 am


-----------------------------------
This would be because you are using the 'upper' command. With 'new' you don't need to.

Instead of 
new name, upper (name) + 1
just put
new name, newUpper
You'll need to make an variable to hold the value of newUpper. Here's what I added:

At the top,
var increase := 0
in wall creation,
if left = 1 and whatdotcolour (barX, barY) not= blue then
            a := 0
            b := 0
            button := 0
            increase += 1
            new boxArray, increase

-----------------------------------
[Gandalf]
Tue Oct 18, 2005 2:38 pm


-----------------------------------
Not quite, upper(array) + 1 will give the same result, cause less clutter and make the program more efficient.

-----------------------------------
Mr. T
Tue Oct 18, 2005 8:49 pm

Alex's Opinion
-----------------------------------
Anyways, any solutions to my original post?
