Ashley's Forum Posts

  • I didn't see that until now, ask rich!

  • You have to log in to the Wiki before you appear on the user list. I can't make you editor until you do that.

  • Yes, that should work. You can see the looping conditions indent slightly to show the nesting. You could also test it yourself by making the line add something like x,y to a listbox and see the output you get.

    You can also nest with subevents - but generally I prefer the look of same-event nested loops like in your picture.

  • I think maybe a 'hidden features' article would be appropriate...

  • Download Plugin SDK 0.98.8 now

    This SDK introduces some important changes.

    • As usual, new runtime/edittime interface functions added since 0.98.5 are exposed.
    • The Win32 Static VC8 (Visual Studio 2005) solution file now opens correctly. Visual Studio 2008 had previously accidentally overwritten the 2005 project file.
    • The Win32 Static VC8-9 SDK has an important configuration change to remove a dependency on the C runtime. You should rebuild any plugins you have from a previous SDK using these settings. Only the Linker Input settings have changed; you can copy them to your old SDK if it's easier. Otherwise, some users will receive a "Filename.csx could not be loaded (error 14001)" error message while starting up Construct.

    Remember you can find lots of example code on the CVS (Plugins module, Behaviors module).

  • If we had a rating system, I'd rate you up for using timedelta

  • I think I touched on this briefly earlier in the thread, but it's more intuitive to start everything from 1. You don't write your shopping list starting with item 0 (unless you've been a programmer way too long ).

    I think the reason computers traditionally index from 0 is because the address of the nth element in an array starting at address a is a + (n * size), which just so happens to mean the first element is the one with n = 0. If you did it 1-based, it'd be a + ((n - 1) * size), which introduces another subtraction operation, which in the 70s or 80s (when all this stuff was being designed), meant your computer could run significantly slower.

    That's not really relevant today, especially in Construct which has such large overheads for the event engine, it makes no difference performance wise whether we choose 0-based or 1-based. 1-based is more intuitive, as mentioned above, so we go for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why would you need an event for every single letter? Just increase the number parameter to left()...

  • That's right, we want to use MFC 10 (when it's released) and ditch the current UI library that we have to pay for out of donations at the moment.

  • It shouldn't do, everything should start from 1, with the exception of random(). If you find anything else 0-indexed, report it as a bug.

  • You may as well make your own text-writing, using the left() expression.

  • Okay, this is on SourceForge now, updated the link. I've marked this build stable since there haven't been any serious new problems reported with it. I think we'll start a stable/unstable branching soon.

  • Why, Davo? Why?

  • It's deliberate, both are necessary. You want MouseX/MouseY for all the game stuff, and you need the screen coordinates for windowing code. What do you think we could rename them to to make this clearer?

  • Yeah, this is a current design problem in Construct. Everything's loaded in on startup. If you have a graphics card with loads of VRAM, it's not an issue, but it's obviously a problem for low end machines. The next major build will include controls so you can only load in to VRAM what's currently on-screen. That should help!

    Also, it shouldn't just crash if you exceed VRAM - it ought to give you an error message saying that's what happened, so you know. I thought that would be working, I'll double check the code for it...