Proper Method To Unload Current ".collection" & Load/Display Next ".collection"?

Hi,

Dead tired…Last question for today:
I looked through the docs, but haven’t found how to:
unload current “.collection” and load/display next “.collection”?

I have two “.collections” ready, just don’t know the correct command to switch.
Keyboard/mouse input is also implemented:

function on_input(self, action_id, action)
	-- Add input-handling code here
	-- Remove this function if not needed

	if action_id == hash("GotoNextScreen") then

	end
end

Let me know, thanks!

J.

You need to use collection proxies.

If you use a tool like Monarch you can switch screens more easily.

3 Likes

Uggg…Will tackle this in the morning.
Night, & thanks!

J.

1 Like

And the ColorSlide tutorial goes through this in detail: https://www.defold.com/tutorials/colorslide/

4 Likes