How can I parent my hero to a slice?
Moderators: marionline, SDHawk
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
How can I parent my hero to a slice?
I want to parent the hero to a slice so the hero's (x,y) follow the slice's (x,y) as I manipulate it.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- SwordPlay
- Chemical Slime
- Posts: 966
- Joined: Sun Jan 22, 2017 9:32 am
- Location: London, England
- Contact:
I think you would use "put hero (who, x, y)" to continuously place the hero at the slice position.
Last edited by SwordPlay on Sat Nov 11, 2017 5:39 am, edited 1 time in total.
"Imagination. Life is your creation."
Sorry, you can't reparent hero or NPC slices to anything else. We're cautious with allowing slice tree manipulations that could possibly end up being painful to support back-compatibly in future. However, it's very common that people want to reparent heroes/NPCs, so I think we should try to allow it, within limits.
(But reparenting the hero wouldn't do what you want anyway unless you also did "put hero(who, 0, 0)" to give them no offset relative to their parent)
So yes, you need to use puthero instead, or alternatively, parent the other slice to the hero instead, if possible.
(But reparenting the hero wouldn't do what you want anyway unless you also did "put hero(who, 0, 0)" to give them no offset relative to their parent)
So yes, you need to use puthero instead, or alternatively, parent the other slice to the hero instead, if possible.
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Thanks both, that sorted everything out for me.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases