madster's Recent Forum Activity

  • It's planned for 1.0, it's a rather difficult and large thing to program.

    Whoa, that's planned?!?!

    I was thinking of using Python for that, but hey that'd be great!!

  • Yeah, that's why it'd be cool to have a system where we could just temporarily hop into a layout, use that layout to make changes or see a cutscene and then invoke an event to hop back to where we were.

    You could store the current layout into a global then jump back to that.

    As it is now, it lets you roll your own layout changing logic

  • Research "roguelikes" for plenty of dungeon generation examples

  • O_O bizarre, when I tried to open it Construct complains that "the file was saved in a newer version of Construct", yet update reveals I'm using the latest (0.98.7)

  • Is there any way to access the pasted objects by index?

    Array paste appears to just help aligning multiple instances, and the Array object seems to be a standard data array.

    Which is the best way to access an object by an index? I want to loop on them and execute actions on each (change position, stretch, etc) based on the index, but I don't quite understand the loop action.

  • Back at the time I wasn't aiming at Windows only

    Just thought it would be nice to share, that circular buffer trick works under the most horrid timing conditions

  • I read somewhere within the forums that one could make an array of objects, for example sprites.

    I cannot possibly figure out how this is done. Can someone elaborate? I saw a spawn action typed somewhere, but couldn't get to it myself. Just now figured instancing with ctrl-dragging.

    I'd like to get an array of 1px-high tiledbackground instances, vertically arranged.

  • I know this is old but I DO have something to contribute.

    In YEARS of discussing this bit (sometimes heatedly) with fellow coders, I found out that the best thing to have is:

    -fixed logic rate, to gauge minimum object size and max speed, thus making sure no object will ever go RIGHT THROUGH another.

    -decoupled vsynched graphic updates, for maximum smoothness

    -interpolated animation: this is key. Without this, you better couple logic with the graphics update rate or it'll look strangely jerky.

    But you all knew this. Now comes my contribution:

    I also spent a long time fighting timer issues, because the timer I was using (SDL) has a really crappy resolution (10ms!!)

    So with that low low resolution, animations and general game logic used to jump around a lot. First approach was to average over a number of frames, then the game would go smoothly over that number of frames and then jump to the new framerate, so that's no good either.

    The next approach is really good and gave me solid animation with a crappy timer:

    -Keep a circular buffer, save the the timedelta in a new cell and move the head in each update, average all stored timedeltas and return that.

    TADA! high-precision non-jumping timer feeding from any timer, crappy or not. That added to the (already in Construct) minimum FPS makes for a SOLID and smooth logic.

    Suggestion? Could specify the size of this circular array in application properties Larger takes longer to adapt to FPS changes, smaller could be jerkier. I kept using 10 to 20 cells and that was enough (remember, I had 10ms resolution!).

  • Computer numbers are always finite, even floating point.

    You'll always have to devise some sort of trick to get infinity, in Construct or coding your own engine, so better stick with Construct

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I imported tiles from PNG with transparency without any trouble.

    Careful, as some softwares incorrectly save PNG transparency (some versions of photoshop do!!)

    Might wanna try saving copies in different programs and testing each in Construct.

    If that's the problem then it's not a Construct bug.

    I ran into this issue when coding with SDL_IMAGE and using photoshop 6 I think. The "save as" and "save for web" codepaths were different and only "save for web" made correct PNGs.

  • :O cool!!!! I knew it had to be there

  • First post's update has the .cap for the tool.

    Construct (the IDE) crashes on exit if I do almost anything in it.

    Note: I always have Firefox and other stuff running besides Construct.

madster's avatar

madster

Member since 17 Feb, 2009

None one is following madster yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies