Monketo's Forum Posts

  • Hey everyone, I'm looking for some advice on removing jitter from my camera.

    I'm using this tutorial https://www.scirra.com/tutorials/626/making-a-smooth-following-camera?page=2 to try and create a smooth camera effect. Which is using a scroll-to behavior with the lerp function.

    However, as you can see in the gif, everything seems to be jittering quite a bit.

    This happens in both Firefox and Chrome browsers.

    Thanks in advance for any advice.

  • Pining the object to the player worked!

    But, now I'll need to set multiple image points on the player for different text alignments (and I'll also need to adjust the text for when the sprite is flipped so it doesn't appear outside the bubble. That's two image points for each dialog alignment!), so unfortunately it's a little more work than I would like. I still don't fully understand why pining it to the speech bubble caused the lag and I have to think that's a bug. But maybe something is just going over my head?

    As you can see in my GIF, I'm still working on getting the text position to be right all the time, but it no longer jitters.

  • I quickly tried setting the UI layer parallax to 0,0 which worked like a charm. Thanks!

    I've not tried using the pin behavior on the Sprite Font, but it sounds promising. Thanks blekdar and

  • Thanks blekdar, I'll give both of those a try!

  • I tried searching for this but couldn't find anything in the forums about it. Thanks in advance for any help!

    I'm having a problem where my text dialog and UI shakes when my hero is moving.

    I'm setting the position of the speech bubble and the position of the next in the same event and doing it every tick. My text is a Sprite Font object and I'm setting it's position to an image point on the speech bubble, which is being set to an image point on the player sprite.

    You can't see my UI in the GIF, but it's simply anchored to the top right using the behavior, and it shakes as well when the camera moves.

  • I know this is a fairly old thread. I have a question for JohnnySix:

    What if I wanted to rotate the square path? How would I apply the rotation of the path to the formula you're using to move along each edge?

  • Ah that's cool. The MoveTo basically makes an object move to a specific point. It was the only way I could the object to change nodes once it reach a specific X,Y coord.

  • I'm not sure I follow. Take a look at my link again, and click on the black circle to make the object rotating fly into the square. Once it hits the square the square will start to rotate (and the object changes into a square as well).

  • Hi everyone,

    I'm having trouble remembering the formula to adjust the position of an object based on the rotation of another.

    My current method is this; I have nodes set around the square itself to identify the 4 points I want to object to move to. I'm moving the object using the MoveTo plugin. Once the object reaches a node it's destination is set to the next node. This works well except for when the square rotates. The movement isn't smooth as it's simply following a straight-line path to the next node and not adjusting for the square's rotation.

    The problem is I can't think of the formula I need to use to adjust the object's position based on the rotation of the square. Any help?

    Here's the example (You'll need to click the black circle as the object in reference rotates around it. Once it hits the square you'll see what I mean):

    https://dl.dropboxusercontent.com/u/47512624/games/Public/Love%20Triangle/Love%20Triangle%20-%20Proto/index.html

    Thanks!

  • I'm only having this issue on mobile devices.

    Here's a dropbox link to the project: http://bit.ly/1DYaAd4

    When running in Chrome or FireFox it will work fine. However when I try opening on an Andriod or iPhone I just get a black screen.

    I've tried this with and without minify script and with Box 2D web and asm.js.

    Currently it's using asm.js and without minify.

  • I've tried with and without minify on and still get the black screen. Should I upload the capx?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm seeing this too after updating. I've tried with both asm.js and Box2D. Mine actually works in browser but when I open it on my iPhone 5 all I'm getting is a black screen.

  • Yeah that issue with the wrapping has been tough. I was using the wrap behavior but that got me whole different set of bugs. Thanks for the feedback.

  • Thanks Andrex. Can you elaborate on what the bugs you ran into were?

  • Thanks. Kongregate told me they're still in a beta phase with HTML5 support and not publicly doing anything with it yet. HTML5 games need to be approved once you upload them, to do that you just email them your info.