Posted By
|
Message
|
Zephni My other cars a Balrog
Registered 17/10/2007
Points 4019
|
17th May, 2009 at 16:56:11 -
Making a level editor thingy.
Basicaly for ages it was ok then suddenly the array stoped working on 0. like x0 y0 z0.
So when i load it, or lay a tile... it doesnt recognise anything that is on array position 0.
It suddenly changed wich is the weirdest part.. Ive checked that its on 0 base in the array properties... and that hasnt changed anything
GOD ITS ANOYING!
dont make me divide by zero...
|
Zephni My other cars a Balrog
Registered 17/10/2007
Points 4019
|
17th May, 2009 at 17:11:44 -
Ive just moved everything up 1 now.... which is anoying coz it means the first thing the level editor has to do is scroll forward and down 16 pixels. Because the first 16 pixrls represent 0 on the x and y. which for some reason dont exist anymore...
dont make me divide by zero...
|
Jon C-B I create vaporware
Registered 23/04/2008
Points 237
|
17th May, 2009 at 17:11:52 -
Oh, are you doing it for the tutorial of yours? Maybe try pm-ing Ricky G.
n/a
|
Zephni My other cars a Balrog
Registered 17/10/2007
Points 4019
|
17th May, 2009 at 17:57:36 -
That version actualy works wich is weird... but ive done qute alot since then... and this versions the weird one :s but cheers il most probly ask anyway
dont make me divide by zero...
|
Cecilectomy noPE
Registered 19/03/2005
Points 305
|
17th May, 2009 at 18:36:26 -
this is why when you are developing things you need to constantly test the outcome and save backups.
if it "suddenly stopped working" yet an older version still works correctly i can almost 99.99% guarentee you its something YOU did to break it. and if you test after every major change, you can go from the last working build and see what you did. it makes it easier to isolate WHERE the bug is happening which makes it simple to fix. so instead of moving everything out of base 0 to base 1 IN the array you couldve just fixed the bug which probably wouldve made for a lot less irritation and stress.
n/a
|
AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
|
17th May, 2009 at 18:50:31 -
Like maybe ticking the 'base 1 index' option?
.
|
Dark Link
Registered 06/02/2009
Points 90
|
17th May, 2009 at 19:01:55 -
if your still having problems, you dont have to use an array. you can just use the ini++ extension.
On my sigunature is a link to goes to a project which as a level editor.
IT works perfectly fine (the ini++ part does at least) and is simple to understand.
Edited by Dark Link
http://www.create-games.com/project.asp?view=main&id=1554
Super Mario Conquest!
|
Sumo148 Super amazing fantastic user
Registered 26/01/2009
Points 530
|
17th May, 2009 at 21:13:34 -
ini= easy to change
array= not as easy, but still possible
n/a
|
Cecilectomy noPE
Registered 19/03/2005
Points 305
|
18th May, 2009 at 01:39:43 -
Originally Posted by AndyUK Like maybe ticking the 'base 1 index' option?
you saying that as if he accidentally ticked it? or that to fix it by ticking base 1 index?
maybe i misunderstood.
if the second, simply doing that to fix it wont help him understand WHY it WAS working and now it ISN'T. the best solution is one you understand WHY it fixes the problem (understanding how you screwed it up in the first place)
n/a
|
nim
Registered 17/05/2002
Points 7234
|
18th May, 2009 at 04:12:52 -
You might also want to check your event order.
For example,
-Add 1 to "counter"
-Get value from X("Array",Value("Counter"))
Will get the value from x=1, but if you reverse those events it'll get the value from x=0.
//
|
Zephni My other cars a Balrog
Registered 17/10/2007
Points 4019
|
18th May, 2009 at 16:09:27 -
Hey guys thanks for the comments.. and no dont you think i tryed tickin that damn box.lol!
Nah what was most strange is tht i hadnt even touched the group that had all the events to do with layout and tilesets n stuff. And the array wasnt even efected on what i was working on at the time.
Anyway... ive put everything on base 1 now.. Only problem being is when you load the level you get a gap round the left and the top of 16 pixels... but i just made it in the events so it places all the items at x-16 y-16.
Wow i just realised how much ive done since i posted this topic, the actual level editors done now, it includes evnts that link to lua files.. changing parameters.... lets be honest, its pretty much a dupe of THE ALMIGHTY PAINTBRUSH.. ive really enjoyed making this though and ive learnt alot of things.
dont make me divide by zero...
|
|
|