Objects are created in wrong positions v2

Bugs will be moved here once resolved.

Post » Wed Jun 25, 2014 5:08 pm

Problem Description
The objects are CREATED IN A WRONG POSITION, then MOVED TO THE CORRECT ONE

Attach a Capx
Attached

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 "Go" button
  • Step the debug

Observed Result
The objects are CREATED IN A WRONG POSITION, then MOVED TO THE CORRECT ONE
    This is the #1
    Image

    This is the #2. This should not been showed
    Image

    This is the #3
    Image

    It should be:
    #1 then #3

    But instead it is:
    #1 then #2 then #3

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

    Affected Browsers
    • Chrome 35: (YES)
    • FireFox 30: (YES)
    • Internet Explorer 11: (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 174 Beta (64-bits)
You do not have the required permissions to view the files attached to this post.
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Wed Jun 25, 2014 5:18 pm

I think I have a temporary solution:

The objects have to be invisible, then after 0.01s I turn them visible.
But I don't think it's a good idea because it's extra work (1create, 2move, 3set visible) instead of just (1create) the object in the proper place.

Image
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Mon Jul 07, 2014 1:44 pm

Closing as not a bug. Firstly you shouldn't try to set the canvas size yourself - letterbox scale mode handles that automatically. Secondly you are mixing up WindowWidth and WindowHeight with the viewport. They are different. You probably want to use the ViewportLeft/Right/Top/Bottom expressions instead.
Scirra Founder
B
399
S
236
G
89
Posts: 24,523
Reputation: 195,378


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests