How do I persist a global sprite?

Get help using Construct 2

Post » Wed Apr 19, 2017 2:15 pm

Hey there! ^_^
So - i made an inventory, a simple one like this; https://www.scirra.com/tutorials/670/ze ... e-easy-way

They are sprites placed out, which plays an animation and frame depending on what item u pick up.
Now, i made this layer parallelx 0, so it always appear with the UI in the middle when called upon.
I made it Global.

However, when i enter a new layout, all the frames reset. Is there any way to fix this? If i add persist, it wont change anything.
Next layout, it simply resets. I need it at parallalx 0, and it must be global to pass through all layouts and carry on right?

Any help?
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Wed Apr 19, 2017 8:26 pm

Adding the persist behavior to your sprite object should do the trick.

It would be easier to diagnose if we could see exactly what you have done.
Mistakes were made.
B
52
S
26
G
111
Posts: 1,628
Reputation: 62,677


Return to How do I....?

Who is online

Users browsing this forum: dand and 22 guests