Container and scroll-to behaviour

Get help using Construct 2

Post » Sun Dec 13, 2015 4:54 pm

Hi,
My camera is attached to an object with a scroll-to behaviour. The object is part of a container attached to player sprite. When spawning that player on start of layout, the container objects are fetched (I suppose) and it appears that the camera doesn't properly attach to the object.
Is that a property of scroll-to or only occurring in combination with containers?
B
15
S
7
Posts: 243
Reputation: 2,063

Post » Sun Dec 13, 2015 4:57 pm

Are you destroying any initial objects using the container before creating your player "on start of layout"? If the old one is still there, scroll-to will try to incorporate both.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun Dec 13, 2015 7:45 pm

ah, you hit the sweet spot there; yes, I am destroying objects and i just found that I forgot a 'global' flag on my object.
works now, thanks!
B
15
S
7
Posts: 243
Reputation: 2,063


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests