Sprite height value when creating new sprite

0 favourites
  • 2 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Link to .capx file (required!):


    Steps to reproduce:

    1. Run the demo and watch the sequence of sprites being created.

    2. A sequence of sprites (1 big green, 1 small blue, 1 small blue) will be created. After a short gap the sequence will restart.

    Observed result:

    The vertical position of the second small sprite is different than the others even though the same code is used. I have noticed this to occur when different sized sprites are created. The timing is also important since the error seems to depend on which sprites are on screen or maybe which ones have just been destroyed. (e.g. when I changed the timer to 4 seconds the result is different and all sprites are created in the centre)

    Expected result:

    I expected the objects to be created in the same position given that the same code is used.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Win 7 SP1 (2 machines) and a few Ice Cream Sandwiches

    Construct 2 version:

    Release 128.2 (32 bit)

  • 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, this example is working correctly. When no 'blue' objects exist, all its expressions return 0. So the first object created returns 0 for Blue.Height, and the second object created returns the first object's height for Blue.Height.

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