Make powerup rotate with character rotation

Discussion in 'Buildbox General Discussion' started by nidal, Apr 22, 2016.

  1. nidal

    nidal Boxer

    Joined:
    Mar 15, 2016
    Messages:
    4
    Likes Received:
    0
    Hello Everyone.

    So I have my character which is a simple ball that rolls around and jumps.
    But when I collect a powerup its animation does not rotate with the character's rotation it stays straight. putting the animation behavior to replace or overlay didn't work.

    Any ideas how can this be made?
     
  2. VectologyGames

    VectologyGames Serious Boxer

    Joined:
    Oct 5, 2015
    Messages:
    529
    Likes Received:
    473
    Design the powerup animation to rotate as well.
     
  3. nidal

    nidal Boxer

    Joined:
    Mar 15, 2016
    Messages:
    4
    Likes Received:
    0
    Hello @VectologyGames , thank you for your response,
    Sorry if I didn't explain it well, the character roll/rotate on movement, and so should the powerup animation.

    Assume My Character is a football and it collects a powerup that turn it into a basketball (using the replace animation behavior) when the powerup is collected the rotation of the basketball(powerup animation) is fixed and does not roll as it should do.
     
  4. VectologyGames

    VectologyGames Serious Boxer

    Joined:
    Oct 5, 2015
    Messages:
    529
    Likes Received:
    473
    I understood you. Powerups are not linked to the characters rotation. You need to make sure your powerup animation (the separate pngs) are rotating.
     
  5. nidal

    nidal Boxer

    Joined:
    Mar 15, 2016
    Messages:
    4
    Likes Received:
    0
    Unfortunately this solution does not work. It may work if your character is always moving (runner type of games). but in my case it's a platformer & doing this will make it rotate even if the character is standing still which looks very ugly :'(
     

Share This Page