Dragoon-A's Forum Posts

  • 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 :)

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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!

  • You have the Ground object's collision mask set to bounding box, rather than Collision Polygon.

    It obviously not the solution.Please help!

  • We are currently working on a racing game, For that we made a track but the thing is we are having problems with the collision (please refer to the uploaded .c3p).

    Google Drive Link :

    drive.google.com/open

  • I am able to login my account but cannot access the paid features at all.

    Since today its shows free edition.

    Tagged:

  • Thanks dop2000, for your prompt response.

    Could you please check this image, Could not identified why Timer logic wont funtioning.

  • When the player collides on a particular track I want the player to be destroyed after 5 sec but if the player moved before the 5-sec mark The player shouldn't be destroyed.

    It is surely possible with overlapping logic because there is an invert option but how can I achieve this here in the collision.

    Tagged:

  • Help Me!