Tokinsom's Forum Posts

  • Very useful plugin. Thanks man!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What expression would I use during "for each XY element" to set a 10x28 array to...

    00,01,02,03,04,05,06,07,08,09,

    10,11,12,13,14,15,16,17,18,19

    20,21,22,23,24,25,26,27,28,29

    ...and so on?

    I had this working before but no longer have the .capx. It was really simple, too! Just can't think of it atm -.-;;

  • CC & C2 are simply not designed for low resolution games. Variable time step, no tiles (even though high res games use them too), floating points, etc. Pixel rounding also doesn't come into play when scaling or rotating - you get that "pixel art in a flash video" look.

    Pretty funny because there aren't that many "modern" games being made them due to performance issues and until Spriter is finished you can only use sprites anyway.

    Anyhow..."solutions"...Only way to prevent the shaking & seams w/ pixel rounding is to move your player by framerate*dt, but that only fixes it when moving strictly horizontally and is pretty stupid for obvious reasons. You can try putting the camera code before your player movement code but that will probably just shake the rest of the screen instead of the player. You can also try int() on your camera to prevent seams w/o pixel rounding but then you'll get more shaking. Adding 1px transparent borders around your platforms helps there but you can't do that with tiled BG objects.

    Personally I just leave pixel-rounding off and use sprite objects acting as tiles (see:TMXimporter) then paste them to a canvas prior to destroying them, preventing seams.

  • Hm. My goal here is to allow teammates to add any tileset/background to the game & update them on the fly without SVN and a C2 license. Splitting them up into hundreds of little tile files doesn't seem like the best option. A list object will be populated with the names of tilesets in a dev folder, and then I go from there, shrinking the Tiled BGs to tile size and offsetting to the selected tile.

    I'm open to other ideas but this seems the best to me.

  • In Construct Classic, Tiled Background Objects had a feature called "Image Offset". This allowed you to shift the image in any direction without affecting the size of the object itself. It was ideal for tilesets, infinitely scrolling backgrounds, infinitely scrolling overlays, and quite a few other things.

    I've tried to get this feature into C2's version multiple times but apparently it's very difficult to do with canvas2D (which no one should even be using) and Ashley won't release anything that's WebGL exclusive...except the whole pixel shader thing -w-;

    Anyway, I *need* this feature to create a tile-based level editor utilizing external files. It's also much, MUCH better than using hundreds if not thousands of sprite frames acting as tiles for obvious reasons.

    Is there anyone capable of & interested in creating an upgraded version of the Tiled BG object with this feature? If it's in the form of a shader I guess that'd work too.

  • Unfortunately no :T I'd love to be able to do this as well..

  • Aha! Thanks, works perfectly now.

  • Hmm. For some reason the window is not being centered vertically. I made an example .capx here.

    Just drag the window around and press 1 or 2 to scale/position it.

    Any ideas? Bug?

  • Oh! Perfect.

  • Yeah I'm not seeing those anywhere...r143.

  • There are a few examples for tile-based water like that...maybe they were in CC. Will search around.

    Yep. construct.net/en

  • Is there any way to retrieve the user's screen size to position the window after re-sizing using the node-webkit object? I tried re-positioning it based on the difference between the old window size and new window size, but it's kind of messy and I couldn't get it completely right.

  • +Dashing = 1

    +Key Is Released

    -Set .Dashing to 0

    -Set .DashTimer to 0

    Use your head. Last time I'm posting here.

  • There's nothing wrong with C2 man, just your events. There are numerous examples including what I just posted..just spend some time with them.

  • That's pretty cool but honestly I would not want to see C2, CC, MMF, GM, or anything like in *IN COLLEGE*...especially such an old version. With all the time and money it takes I'd want to learn the real deal. You can teach yourself any of those programs anyway.

    Unless it's strictly a game *design* course...which I guess is alright since you can put together your ideas much more easily.