WRS's Recent Forum Activity

  • The cool game!

    Have Video?

  • Thank you again for your pom. And thanks to jobel, through your example, I also implemented a few moments!

    Many thanks friends!

  • UI is a layer - and its paralax is disabled (0%)

    On the Human layer (100% parallax). The UI layer is analogous to your HUD layer.

    As you can see from the video, what we see is a small rectangular screen, this is the resolution of the UI layer. Dalya, I shuffle the mouse and we see that the map is large.

    In your example, when we specify half of the viewing screen does not work, since the screen is larger.

    So as soon as the screen moves, the problem began. But AllanR offered a formula that fixed all this.

    Try to solve it. It works fine. The object spawns right at the point of the sprite.

    Your example works fine if the screen does not require scrolling, that is, does not go beyond the monitor zone.

  • You just saved me !!!!!!!!!!!!!!!!!! Thank you very much!!! Everything works as it should, I broke my brain.!) Thanks a million)

  • Thanks a lot, it will help a lot.))

    I shot a video, I ask for my poor English. I tried to show what I want.

    Subscribe to Construct videos now

    And one more

    Subscribe to Construct videos now
  • (scrollx - (viewportwidth ("Human") / 2)) + Button_Point.x

    Here it helped, closer does not appear right in the place where I exactly need, but already better, the error in dozens of pixels

  • Yes, I create it on the UI, because otherwise it is not created if you start scrolling.

    That is, the UI layer is 1000x1000 px and the working area is 3000x3000px

    -----

    The system does not skip the expression viewportheight and viewportwidth

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Initially, I click on the display and a marker appears, then there are 2 buttons in this marker, each of which spawns the object. I click on the button 1 and in the same place an object should appear (I create the object at the sprite point of the marker)

    That is, I do not create an object immediately when I click. At first a marker appears with 2 buttons and depending on which button I click on it will create an object at this place.

    that is, the marker creates a new object at the sprite point 0 of this marker. Which appeared after pressing.

  • I have a layer "UI" he has disabled paralaks (equal to 0%)

    There is a layer "Objects" where all the objects are located. It has the usual parallax (equal to 100%)

    The UI is static, that is, when I scroll the screen, all the elements are in place. Next, I click on any place on the screen and create an object on it. And here the problem begins.

    I need the object to be created exactly in the place in which I clicked, and if I create it and specify the "Objects" layer, it will spawn somewhere else. If I specify to create an object on the "UI" layers, then it is spawned where necessary, but since the "UI" layer is not a parallax, it moves when scrolling behind this layer.

    I even spawned on the "UI" layer and then mixed the object onto the "Objects" layer, but at the same time its position immediately flew off and it mixed up.

    Initially, I call the spawn button on the "UI" layer, otherwise if it is "Objects", it will simply not be called.

  • Big sanks)

  • Many thanks for the advice.

  • Do I have to draw the entire map on tiles? Do I get it right?

WRS's avatar

WRS

Member since 2 Feb, 2019

Twitter
WRS has 3 followers

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies