YesNoOk
avatar

making an animation follow the player  (Read 839 times)

Started by Sol Knight X, December 02, 2018, 06:03:36 pm
Share this topic:
making an animation follow the player
#1  December 02, 2018, 06:03:36 pm
  • ***
  • Yo I'm the best maang. I diiiiiiiiiid it.
    • Puerto Rico
    • Skype - solknightx
So I'm making a character right now where have an animation if a book fading in and out when initiating an air normal. I want button push to make the animation of the book  play and also fall the character during his jump arch.  The air normals will instead be helpers that attack instead. Would it be easier make the book a helper or an explod, and how would I go about making it work?

Re: making an animation follow the player
#2  December 03, 2018, 06:20:49 am
  • avatar
  • **
    • USA
Just spawn a helper during the "attack" and have the helper do all of the code for itself.  The helper will have code for the attack and binding itself into position.  Like just seriously have a state that tells it to be in the same position relative to the owner.  And use a different helper for each attack unless you want to get super convoluted with it.
Re: making an animation follow the player
#3  December 04, 2018, 09:43:50 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
The book itself will follow the player more accurately if spawned as an Explod with bindtime = -1

If projectiles are going to shoot out or whatever, those should be spawned as helpers