Dragoon-A's Recent Forum Activity

  • Hi dop2000,

    Thank You :)

  • Hi dop2000 a suggestion needed.

    We have to store multiple global variables values in local storage, to achieve that we created various LocalStorage keys and implemented exactly how you suggested. Everything works fine in debug mode but in a real device, We have to wait some while (probably 30 sec) to make the local storage to work in real-time. Eg, if I alter the player name, then restart the game immediately then the changes won't be made but if I alter the name and wait for like 30 sec then it works perfectly. How to deal with it? Please help.

  • Thanks Everyone . it was really helpful :)

  • Hello Everyone,

    We are working on a simple project which contains multiple local storage keys.

    So how do we call a specific key. Please refer the img below.

    Here the .c3p. Please help. :)

  • Hi Team, Hope u are doing great and safe, I have one query

    Suppose i have a sprite and a tile and i want the tile to create randomly in a track and it should be keep continuing creating and after i cross it it should be destroyed..Can you please help me on that..

    I have attached the drive link of my c3p file

    drive.google.com/file/d/1k7A83-VN0UQpn6bt139IyYW1QhKDmd4g/view

  • If you don't need to scroll horizontally, then simply don't do it. Remove all those actions and set the Y scroll only:

    Set scroll Y: clamp(Player.Y, RectangleFocusArea.BBoxTop+ViewportHeight("Player")/2, RectangleFocusArea.BBoxBottom-ViewportHeight("Player")/2)

    Thank You Very much dop2000. It worked like charm.

    Highly appreciated to you and every one who help us in assisting on it :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If the viewport is wider than RectangleFocusArea size, then simply set scroll X to the center of the viewport/layout. The view will be centered and only scroll vertically.

    We tried multiple times but it didnt work as expected.

    Please help us dop2000

  • You need to enable Unbounded Scrolling on the layout. Also set scaling mode to Scale Outer. See this tutorial:

    https://www.construct.net/en/tutorials/supporting-multiple-screen-sizes-77

    Thank You, We have already enabled the Unbound scrolling as well the Scale Outer, Please check the previous post where we have uploaded the .c3p

    Thank you. :)

  • have you tried this?

    + System: On start of layout

    -> System: Scroll to (ViewportWidth("Player")÷2, ViewportHeight("Player")÷2)

    Thank You, Did you mean on both the axis?

  • There are lots of mistakes in those expressions. Fixed:

    X: clamp(Player.X, RectangleFocusArea.BBoxLeft+ViewportWidth("Player")/2, RectangleFocusArea.BBoxRight-ViewportWidth("Player")/2)

    Y: clamp(Player.Y, RectangleFocusArea.BBoxTop+ViewportHeight("Player")/2, RectangleFocusArea.BBoxBottom-ViewportHeight("Player")/2)

    Also, the size of RectangleFocusArea needs to be larger than the window (viewport) size, otherwise clamp will not work.

    Thanks dop2000 For you prompt response, Could you help us over this weird issue, Please find the file over here.

    Having said that,our requirement is to place the whole game to center of view port because in the modern smartphone the aspect ratio is varied device to device,we are currently have the view port 16:9

    If the whole game wont stay on the center then on the device which doesn't feature 16:9 display, then the background will looks weird. We want to fill the vacant display with a BG whenever the phone screen reach beyond 16:9.

  • Hello Everyone,

    We have a project (please find it) where we have a camera with a scrollto behaviour. Our main goal is to restrict the focus of the camera to a particular rectangular box(9PATCH) and place it into the center of the view-port.

    For that we tried the below logic

    Logic Source: construct.net/en/forum/construct-3/general-discussion-7/avoid-blank-space-platformer-143872

    However the issue is whenever we enabled the scrollto behavior, the game wont start from the center of the view-port.

    Please help.

    Tagged:

  • It obviously is the solution. Configure the collision polygon correctly in the sprite and in Physics settings.

    Thanks for your response.I tried using collison polygon but it was not working as expected.

    Please help!

Dragoon-A's avatar

Dragoon-A

Member since 28 Mar, 2019

Twitter
Dragoon-A has 1 followers

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies