View previous topic :: View next topic |
Author |
Message |
J_Taylor The Self-Proclaimed King of Ketchup

Joined: 02 Dec 2009 Posts: 188 Location: Western NY
|
Posted: Thu Apr 29, 2010 3:31 pm Post subject: Slice questions |
|
|
Okay, so I think I'm getting the hang of slices. But I have a problem with knowing exactly how to integrate them.
For instance: Is there a way to attach a slice to an existing walkabout or the main menu?
And how, exactly, am I supposed to check to see if one slice is still inside another one?
Any help would be great. _________________ Elemental: .75%
Heart of Darkness: 0% (crash)
The Mansion: .05%
Shattered Alliance: .05%
See a pattern forming? I do, dammit. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Apr 29, 2010 7:48 pm Post subject: |
|
|
You can't directly attach a slice to an NPC or a menu yet. Those features are planned for the future, but right now you have to fake it.
Faking it with NPCs is not too hard. Attach the slice to a map layer using "set parent". Then you have to set the slice's x and y to be the same as the NPC's pixel coordinates. I posted some examples in Baconlab's thread on Slime Salad http://www.slimesalad.com/forum/viewtopic.php?t=3525
You can't attach things to the menu layer, but the sprite layer (where slices start by default) is already on top of menus, so you could just reposition a slice to match the x and y of a menu.
To check if one slice is inside another, try the slice contains command. |
|
Back to top |
|
 |
J_Taylor The Self-Proclaimed King of Ketchup

Joined: 02 Dec 2009 Posts: 188 Location: Western NY
|
Posted: Tue May 04, 2010 4:16 am Post subject: |
|
|
I'll try this. I may need help with the actual scripting, though. Just warning. _________________ Elemental: .75%
Heart of Darkness: 0% (crash)
The Mansion: .05%
Shattered Alliance: .05%
See a pattern forming? I do, dammit. |
|
Back to top |
|
 |
|