Unexpected position when creating object

Bugs will be moved here once resolved.

Post » Sun Sep 25, 2011 3:51 am

C2 r58; Windows XP SP3; FireFox 6.0.2; ATI Radeon HD 4870

http://dl.dropbox.com/u/36472942/construct/bugs/Spawnbug.capx

Event 3: Action Create object "ball" on layer, I expect each ball to have a different position, related to the current indexloop (cols).

When I launch the preview, all balls are created around the position of the first instance of the "ball" object.
Whether it is on screen, or destroyed at startup (untoggle event 1's action)

I expected an horizontal alignement, and got a "grape" instead ^^
I got a bit surprised, is there something I'm missing there in my code or is it a legit bug ?

EDIT2: http://dl.dropbox.com/u/36472942/construct/bugs/creationpos2.capx
Getting further in the dev of my app.
It seems like the horizontal alignement is created as expected, but as soon as created, balls instance gets set to the first instance's position (and around it, according to physic behaviour).
I don't mess with balls position in the capx, I only create them and from there, they are free to go.
Sounds like something messing in the physic behavior.
I took a quick look, but the minified library makes it quite hard to follow along


EDIT1: And another example encountered while doing a capx for this topic.

The first "Grid_section" is spawned at 0,0. This is unexpected.
The following "Grid_Section" are spawned as expected in the right position though.Kyatric2011-09-25 08:09:24
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Sep 25, 2011 1:11 pm

You're right, objects with the physics behavior spawn at the wrong place if you create them at runtime. Fixed for next build!
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Sun Sep 25, 2011 2:57 pm

I got something similar with text object, posted here
http://www.scirra.com/forum/text-object_topic44806.html
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Sun Sep 25, 2011 10:17 pm

It does not seem to be confined to the physics behavior either.


EDIT: disregard.sqiddster2011-09-25 22:26:01
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests