Set Parent a Slice to a Map Layer

Wed Mar 06, 2013 12:09 pm
Hey guys! Quick question, under Slice Functions in the Plotscripting Dictionary it says, and I quote, "You may set parent a slice to a map layer to make it move with the camera just like heros and NPCs do." However, it does not offer an example of the proper syntax to make this happen. I have tried several different ways, but can't seem to get it to work. Something like this:
Code: spritetops:=createcontainer(320, 200)
setparent(spritetops, sl:maplayer 1)
It's probably easy, and I admit I'm rusty on my plotscripting, but if anyone can help, I'd really appreciate it! Thanks!
Soda Piggy Website