Username
Password
Are you new? Sign up now
I’ve forgotten
Home
:.
Downloads
:.
Articles
:.
Projects
:.
Reviews
:.
Forums
:.
Arcade
:.
Klikcast
:.
GOTW
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
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
1971
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
1
All
Advertisement
Worth A Click