christina's Forum Posts

  • OK, what gives??

    Vertical jittering can't be fixed even if I set the player sprite bounding box to an odd number.

    Ashley could this be a candidate for a bug report? Is there no way to have smooth vertical scrolling at this resolution, when pixel rounding is on? Why does Construct2 treat horizontal and vertical scrolling differently?

    However, if you turn pixel rounding off (which makes for smooth scrolling), you can get rid of the seams by making the Height of your tiles 15 instead of 16 in the level editor (not in the sprite editor). That way you are forcing the renderer to ignore a whole pixel, and since the problem seam is less than a whole pixel, you solve it.

    Again, this is something that, ideally, shouldn't be happening

  • May I say how amazing your graphics are?

    Also: CAPX

    have a look. I fixed the horizontal problem by shaving 1 pixel off EACH side of the Player.boundingBox

    I also moved the image point by one pixel vertically, seems to have solved some of the vertical jiggling.

    I suspect you need to play with odd and even numbers in your dimensions and image point positions.

    Also, it might help to pin your accessories to the player sprite, instead of setting their position. But even then, you need to find what numbers play well with Construct's engine. Remember, if you force Construct to divide a pixel in half, it's going to have trouble deciding which half, which I suspect is the cause of the jitter.

    A 1x1 pixel player sprite might work, but then you need a new "player" sprite for collisions and the like.

    Let me know if this helps.

  • keepee solved this very elegantly here

  • Oh newt and if you add a

    Mouse

    On left button Released

    • canvas: begin path

    it even stops drawing when you don't want it to

    capx

  • newt, because you ROCK

    also, this

  • Hm I was mistaken, I can't make it work using loops.

    Anyone know how to make the canvas "draw point" draw smoother lines? Maybe even control the smoothness of those lines (i.e. how close the points are together)

  • No problem!

  • CAPX

    live example

    Here, just one event. Just hold your left mouse button and draw.

    You will notice it isn't very responsive when you move the mouse cursor at speed. To solve this, you need loops that update the canvas many times per tick.

    Hope this helps

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ?a???a p??�??�a, ???a!

    You're welcome

  • Thank you, people.

    eli0s

    90% of effects is thinking creatively.

    Remember: it's not magic, it's just analyzing your situation. A water surface, viewed from the side, is essentially a mirror (because of an optical effect called "fresnel").

    So what you need is a liquid mirror surface. Therefore the canvas object, for reflection, and a few effects for making the canvas look like a liquid.

    I don't know how Naves is doing it, but I'd do the following:

    every tick

    • paste all objects, one by one, on a canvas sized like a long rectangle
    • set canvas height to canvas height * (-1) which mirrors the image vertically

    and add a few layer effects.

    Let me know if this helps.

    CAPX

    Live Demo

  • lukedirago

    Niko

    eli0s

    Sebastian

    Thank you. I wish the queen didn't jump over the obstacle randomly. I think I['ll have to make a custom level-solving algorithm instead of using the platform behavior. But yeah, apart from being a broken game, I like it too

  • tx tulamide, yes it's a pretty cheap effect, it just needs a little advance preparation.

    But you're right, it could be made better with the "offset image" feature. I've seen a lot of requests, too.

    Ashley can we get an offset image property for tiled backgrounds, if tulamide and I promise to write a big tutorial on it?

  • Thanks C-7 it took a lot of research and head-scratching :)

  • You're welcome! This is the awesomest FAQ I've ever seen anywhere and when I was getting started with Construct it was my holy book

  • Kyatric you might want to add this

    scirra.com/forum/topic75320.html