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
12
S
5
Posts: 204
Reputation: 1,648

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
21
G
203
Posts: 3,582
Reputation: 115,008

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
12
S
5
Posts: 204
Reputation: 1,648


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, ismael123, lennaert, mathu and 6 guests