Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8959117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:22:30+00:00 2026-06-15T15:22:30+00:00

I have this animation I’ve made which is an arm moving from above some

  • 0

I have this animation I’ve made which is an arm moving from above some guy’s head to the centre of his body. The distance from the edge of the arm to the mid point of the guy’s body is the radius of a circle, so the distance is exactly the same whether the guy’s arm is to his right, left, up, and in addition, the animation is exactly the same no matter what direction the arm is coming from to the center. If there were just 4 attack directions, I know I could just make the 4 different animation, but in my game, there are infinite directions the arm could extend in because the user swipes and the arm extends in that exact direction.

No matter what direction the arm is extended in, the same animation works just at a different angle (the animation was made with the guy’s arm directly above his head).

I can calculate the angle at which the arm is extended, but how can I play an animation at this angle, if you know what I mean?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:22:31+00:00Added an answer on June 15, 2026 at 3:22 pm

    well, if you set the rotation of the first sprite of the animation, the entire array of frames will be tilted, as this example from one of my games :

    CCAnimation *anim;
    NSString *frameName;
    NSString *animName;
    
    anim = [self getAnimationFor:mapAnimationTypeIdle];
    animName = [self getAnimationNameFor:mapAnimationTypeIdle];
    frameName = [self getFrameNameForAnimationNamed:animName andFrame:1];
    CCAction *forever = [CCRepeatForever actionWithAction:
                           [CCAnimate actionWithAnimation:anim]
                        ];
    _soldierAnim = 
        [CCSprite spriteWithSpriteFrame:
           [[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:frameName]
        ];
    [self addChild:_soldierAnim z:0 tag:_tagForSoldierAnimation];
    _soldierAnim.rotation=22;
    [_soldierAnim runAction:forever];
    

    i just tested this, it tilts the entire animation by 22 degrees.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code which should create a splash image with either no animation
I have added some animation using jquery but it's not working: $('.test-container').click(function(){ $(this).css('background-color', 'rgb(119,
I have this animation which I'd like to trigger upon click of a link.
I am having some problems getting this animation to execute. I have a feeling
Suppose I have this animation that start at some point : myElement.animate({ top: -currentTempImageX,
I have not done much animation, and I need some help with this. I
I have this page animation which when the user leaves the page the document
So I have this animation made up of 41 frames and i'm trying to
I have this simple animation that moves an image from one point to another:
I have this CSS3 animation that works in Chrome .circle-label-rotate { -webkit-animation-name: rotateThis; -webkit-animation-duration:.5s;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.