The Daily Click ::. Forums ::. Klik Coding Help ::. level editor (array) problems
 

Post Reply  Post Oekaki 
 

Posted By Message

Zode



Registered
  13/04/2009
Points
  239

PS3 Owner
15th March, 2010 at 19:47:38 -

yeap i made level editor and i got it working
it saves n stuff
but when i load.. it "shrinks" by 1 block
some random ascii art of it:

[X] = block [-] = free
BEFORE LOADING:
[x][-][-][-]
[X][-][-][-]
[x][X][x][-]
[-][-][-][-]

AFTER LOADING:
[-][-][-][-]
[-][X][-][-]
[-][X][x][-]
[-][-][-][-]


Edited by Zode

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1969

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
15th March, 2010 at 20:08:29 -

Normally this kind of thing is caused by mixing 0-based and 1-based indexes.

For example, a fastloop is always 0-based, but an array is 1-based by default.
Try unticking "1-based index" in the array object's properties, if you haven't already.


Edited by Sketchy

 
n/a
   

Post Reply



 



Advertisement

Worth A Click