SpongeBrain's Recent Forum Activity

  • Just tried it and it works fine here.

    You can set it's format in the properties bar on the left.

    In my test I set it to DDMMYYYY and then retrieved the date by sending it directly to a text box.

    I did notice that the formats in the list that only have 2 year digits returned the year as 109 instead of 09.

    Sponge.

  • Why not SystemMouse and GameMouse.

    They can't be interpreted any other way with those names.

  • I think I've found a bug in the indexing of arrays, as well as a bug with reading a value using "get value at x,y,x).

    See this post for details:

    Basically, the first problem I found was that using "get value at x,y,z)" didn't seem to flag a match when it should have.

    The second problem, and the one more related to this thread, is that it appears that arrays (in the newest 98.8 ) are using both 0-indexed and 1-indexed.

    Try it.

    Set a value in a 3d array like Array(5,5,5), and then search for that value.

    You'll find it in Array(4,4,4).

    My tutorial will have to be put on hold until this is sorted, because the goalposts seem to keep moving.

  • Thanks guys.

    Mipey;

    So it was a bug then.

    That drove me nuts for a good hour or so before I knew it couldn't be me.

    And this 0-indexed / 1-indexed issue needs sorting.

    I've used 0-inexed arrays for years, but I'm quite happy to use 1-indexed arrays if we have to, as long as it's clearly marked as such, and that the build is actually using what they say.

    Thanks for the example using "for each element" too.

    That's a much cleaner way of doing things.

    EDIT: Looking again at your example, it checks the value of z, rather than the the contents of the array at z, and I thought that I might suffer the same problem with the array when trying to read the contents.

    But luckily, using something like "Array(Array.CurrentX, Array.CurrentY, 3)" does read the contents of Z..........BUT.......

    ......it appears that the arrays are using both 0-indexing and 1-indexing. One for reading and one for writing.

    For instance, if you set array(10,10,5) to 1, when you check the array for a stored 1, it will find it at array(9,9,4).

    GMG;

    It's a display bug in Construct, although you did have me wondering.

    When edited in Construct, it shows a quote each side of the letter, and when committed, it displays that odd character again.

    Cheers.

  • ...as per the discussion in the help forum.

  • Yeah, I tried listboxes earlier on today, as well as a few other tried and tested bug-finding methods, but none of them shed any light on what the problem could be.

    Apart from it maybe being a bug in Construct, the only other thing that I could think of was that maybe the cap I'm working on has become corrupt somehow, so I thought I'd start a new cap with just an array, a listbox, and a few commands.

    <img src="http://img218.imageshack.us/img218/6406/condition.jpg">

    Now unless I'm missing something on setting up the Array, surely that should fill the listbox up with the word "yes".

    I'll upload this test cap to the upload area in a second, just so you can try it.

    I haven't had a look at the "for each element" yet.

    I'm trying to keep the coding as simple as possible so that non-coders can understand the tutorial better.

  • I'm writing a tutorial on building random dungeons (per the recent discussions by others), using Construct to create the tutorial itself.

    I aim to have the start of the tutorial go through the concepts of random dungeons through click-next pages, and then to have the program create and build a random dungeon to demonstrate the process.

    The tutorial will also be in the form of a cap file, documented to help understand how it works.

    What's this got to do with the title of the thread?

    Well, I have the dungeon creation part sorted, but I'm having trouble with using more than 2 Conditions in an Event.

    Here's a pic of what I have.

    <img src="http://img57.imageshack.us/img57/6406/condition.jpg">

    What I'm trying to do is to have the Event go through the nested X and Y loops, checking the contents of the Array at position (x,y,1), and if the contents are what I expect them to be, to act on it in the Event line.

    I'm still trying to fathom out some of Constructs logic flow, so I was hoping you could tell me whether the pic above should work or not.

    Cheers.

  • Whoa, wacky.

    I'll re-upload it

    Cheers Deadeye.

    This time it downloaded ok.

    Nice example.

    I've just played about with it using slopes and other obstacles, and it works well.

    Lunar Jetman anyone?

  • i bet that when you finish 1.0 , you will build 2.0 from( or mostly from) scratch, because i'm preatty shure that while you building up to 1.0 version, you think "that this part of softwer could be done difrent, but it's to late now"?

    It's sod's law, and you always think of "better" ways of doing it when it's after the fact.

    I'm sure I read on one of the main pages that they intend to drop the 3rd party GUI after version 1, and utilise the normal Windows API.

    I'd welcome that.

    Sponge.

  • the slime effect?

    its so easy

    check the effects in the slime layer and the slime object image then youll understand

    True, but Kudos to Quazi for thinking of it in the first place.

    I'm sure it will be copied by many.

    Top work mate.

  • I made this for you yesterday as an example,....

    http://willhostforfood.com/files4/7/1/2 ... wheels.cap

    Lol, when I click that link, I'm taken to a 17mb MP3 file.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ....and in any case, we're just about done changing things which will mess up .

    We'll hold you to that.

SpongeBrain's avatar

SpongeBrain

Member since 7 Feb, 2009

None one is following SpongeBrain yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies