Objects are created in wrong positions

0 favourites
  • 2 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Problem Description

    The objects are created in a wrong position, after that they move to the correct one

    Attach a Capx

    https://www.dropbox.com/s/t3tz15cas9qnydc/Example%20Error.capx

    Description of Capx

    It's just an example of Window Size & Anchor behavior

    Steps to Reproduce Bug

    • Open project
    • Debug layout
    • Pause the debug
    • Clic on the "Start" button
    • Step the debug

    Steps to Reproduce Bug (VIDEO)

    Observed Result

    The objects are created in a wrong position, then are moved to the correct one

      This is the #1, after this should go #3, but #2 is showed before #3
      This is the #2. This should not been showed
      This is the #3, after this should go #5, but #4 is showed before #5
      This is the #4. This should not been showed
      This is the #5. This is the correct one

    It should be:

    #1 then #3

    #3 then #5

    But instead it is:

    #1 then #2 then #3

    #3 then #4 then #5

    Expected Result

    I expect that the objects are created in the correct position from the beginning

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1 Update 1 (64-bits)

    I have the Intel HD Drivers updated to 8.15.10.2900, the last version available for my PC

    Construct 2 Version ID

    Release 173 (64-bits)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as not a bug, it looks like your calculations are incorrect. A common mistake is to use WindowWidth and WindowHeight when really you mean to use the viewport dimensions (e.g. ViewportRight("layer") - ViewportLeft("layer") instead of WindowWidth). If you really think there is a bug please submit a new report with as few events and objects as possible - this should be demonstrable with a single event/object if there really is an issue.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)