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
11
S
4
Posts: 191
Reputation: 1,482

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
19
G
181
Posts: 3,485
Reputation: 103,689

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
11
S
4
Posts: 191
Reputation: 1,482


Return to How do I....?

Who is online

Users browsing this forum: cgsammu, GabrielBalas, LukeNecklace, omnipaws, SoldjahBoy, Trimeister and 9 guests