Jezzball Help - Arrays
Author |
Message |
Mr. T
![](http://www.madpaintballer.com/images/purepwnage.gif)
|
Posted: Mon Oct 17, 2005 5:50 pm Post subject: 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?
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
JezzballHacks22.t |
Filesize: |
7.67 KB |
Downloaded: |
140 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
bass_maniac
|
Posted: Tue Oct 18, 2005 11:57 am Post subject: (No subject) |
|
|
This would be because you are using the 'upper' command. With 'new' you don't need to.
Instead of
code: | new name, upper (name) + 1 |
just put
You'll need to make an variable to hold the value of newUpper. Here's what I added:
At the top,
in wall creation,
code: | if left = 1 and whatdotcolour (barX, barY) not= blue then
a := 0
b := 0
button := 0
increase += 1
new boxArray, increase |
|
|
|
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Tue Oct 18, 2005 2:38 pm Post subject: (No subject) |
|
|
Not quite, upper(array) + 1 will give the same result, cause less clutter and make the program more efficient.
|
|
|
|
|
![](images/spacer.gif) |
Mr. T
![](http://www.madpaintballer.com/images/purepwnage.gif)
|
Posted: Tue Oct 18, 2005 8:49 pm Post subject: Alex's Opinion |
|
|
Anyways, any solutions to my original post?
|
|
|
|
|
![](images/spacer.gif) |
|
|