Tokinsom's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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. scirra.com/forum/how-to-make-minecraftlike-lavawater-physics_topic41488_page1.html

  • 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.

Tokinsom's avatar

Tokinsom

Member since 6 Jun, 2010

Twitter
Tokinsom has 11 followers

Connect with Tokinsom

Trophy Case

  • 14-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies