chromiumboy Posted February 27, 2015 Share Posted February 27, 2015 Is there are way to offset the animations of a prefab (outside of Spriter)? I've found AnimState:SetFinalOffset(n) where n is an integer, but this does not seem to have any effect. Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/ Share on other sites More sharing options...
Mobbstar Posted February 27, 2015 Share Posted February 27, 2015 sounds off-putting If nothing else helps, I recommend dummies. A dummy prefab should work just fine, possibly, maybe. Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/#findComment-617455 Share on other sites More sharing options...
chromiumboy Posted February 27, 2015 Author Share Posted February 27, 2015 (edited) Thanks for the suggestion, but I don't think it would work for what I intend. I want to be able to shift the player and mob anims to appear to sink into the ground. Edited February 27, 2015 by chromiumboy Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/#findComment-617459 Share on other sites More sharing options...
Blueberrys Posted February 27, 2015 Share Posted February 27, 2015 @chromiumboy Have you tried changing the "y" position of the prefab's instance? I think the game does provide usable 3 dimensional coordinates, even though the player never moves up or down. (Birds do fly up/down though) Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/#findComment-617528 Share on other sites More sharing options...
Mobbstar Posted February 27, 2015 Share Posted February 27, 2015 @chromiumboy Have you tried changing the "y" position of the prefab's instance? I think the game does provide usable 3 dimensional coordinates, even though the player never moves up or down. (Birds do fly up/down though) Remember to suspense gravity if you try this, or your guys will literally sink into the floor! Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/#findComment-617536 Share on other sites More sharing options...
chromiumboy Posted February 28, 2015 Author Share Posted February 28, 2015 (edited) @chromiumboy Have you tried changing the "y" position of the prefab's instance? I think the game does provide usable 3 dimensional coordinates, even though the player never moves up or down. (Birds do fly up/down though) I did, but the game physics pushes you back up to ground level instantly. Turning off the collision with the ground could be possible, but as Mobbstar says, you'll fall straight through. I wonder if its possible to set up a secondary floor underneath the original? Edited February 28, 2015 by chromiumboy Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/#findComment-617729 Share on other sites More sharing options...
Blueberrys Posted February 28, 2015 Share Posted February 28, 2015 (edited) @chromiumboy I think it might be easier (and probably efficient) to disable the gravity and floor collision for the character instead, and control the y coordinate manually. I'm assuming the x and z won't be changed either because the character is stuck in the ground? Edited February 28, 2015 by Blueberrys Link to comment https://forums.kleientertainment.com/forums/topic/51525-offseting-prefab-animations/#findComment-617733 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now