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: 207
Reputation: 1,672

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
220
Posts: 3,646
Reputation: 123,721

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: 207
Reputation: 1,672


Return to How do I....?

Who is online

Users browsing this forum: Apollo14, InfiniteRockets, LaDestitute, mtnboy22, user5487 and 2 guests