Sprite height value when creating new sprite

Bugs will be moved here once resolved.

Post » Tue May 07, 2013 9:06 pm

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/25721687/HeightBugTest-v001.capx

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)
B
10
S
3
G
2
Posts: 7
Reputation: 2,438

Post » Wed May 08, 2013 2:14 pm

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.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest