Leespiker's Forum Posts

  • 9 posts
  • I bet you did not put it in the small box that is your game screen. You need to make sure your text is in the top left side of the screen. Since you screen will not scroll when you set it's parallax to 0,0

    Thanks I did not have it all the way in the top left corner of the game screen when I placed it.

  • Create a new layer (I call mine UI) and just set the parallax to 0,0. It defaults to 100,100. That way the layer doesn't scroll as the rest of the layout does. You can manually move the sprites on that layer to wherever you want and they will stay at that point on the screen.

    It is not showing up for some reason.

  • Can you go into a little more detail though? I tried anchoring and bringing it to the UI layer, but I actually do not see it anymore.

  • You can either use the anchor behavior or put it on its own layer (a user interface/hud layer, for instance) and set the scroll rate to 0,0.

    Thank you.

  • How do I keep text on screen (in the top-left corner) when moving (both vertically and horizontally)?

    Thanks in advance for any help.

  • You can compare Touch.X to scrollx.

    [attachment=0:3npu9wyl][/attachment:3npu9wyl]

    Thank you. This is exactly what I needed.

    I did the following:

    Would you happen to know how to tell if 2 touches are currently being made?

    EDIT: Figured it out on my own.

  • I could check if the touch position's x value is greater than or less than the player's current x value, but how would I go about checking that if statement?

  • Hi Leespiker IMHO, let's say you have layout size of 800 width and 300 height. add an empty sprite and set size to 400 (half size of the layout width) and height of 300. name it "leftside" and then duplicate it and name the other "Rightside". then you can add events like: ON "leftside" touched ==> action: "player" move left

    Right, I thought of that, but if the current view is not the whole screen (like on a mobile app), then if you were on the left side of the screen and clicked/touched, then you would move left even though you clicked on the right side of the "current view screen" since the player cannot see the entire map, just a small portion of it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do I move left and right based on touch location?

    For example, if the player touches the screen on the left side, I'd like to move left and vice versa.

    I am not sure how to compare the

    current view's center x value

    to the touch position's x value (which I know is Touch.X).

    Thanks in advance for any help.

  • 9 posts