Re: Weird error
- Posted by Michael Packard <lgp at EXO.COM> Apr 11, 1997
- 1023 views
On Sat, 12 Apr 1997, David Gay wrote: > > > > if y1>0 and y1<12 and x>0 then a=barrierow[y1][x+1] > > > > since y1 and x are both >0 for the read to take place I don't get why > > it's crashing with the 0 out of bounds. Barrierow is an image that's > > about 12x150. > > > What are the actual values of y1 and x? um, 0<y1<12 and 150>x>0 just like I stated! y1 and x are floating point atoms. I get it now. Duh. y1>0 but less than 1 so the indexing rounds down to 0. I guess I just had to mail the question to see the answer. Michael Packard Lord Generic Productions lgp at exo.com http://exo.com/~lgp A Crash Course in Game Design and Production http://exo.com/~lgp/euphoria