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 7043311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:16:25+00:00 2026-05-28T02:16:25+00:00

In AndEngine I defined a PathModifier in this way public static IEaseFunction EASEFUNCTION; EASEFUNCTION

  • 0

In AndEngine I defined a PathModifier in this way

          public static IEaseFunction EASEFUNCTION;
                EASEFUNCTION =EaseSineInOut.getInstance();
                float[] coordinatesX = new float[300], coordinatesY = new float[300];
    for (int i=0; i<300; i++){
        coordinatesX[i] = i;
        coordinatesY[i] = (float)(20 * (Math.sin((-0.10 * coordinatesX[i]))));
        System.out.println(coordinatesX[i]);
        System.out.println(coordinatesY[i]);
    }
    PathModifier path = new PathModifier(10, coordinatesX, coordinatesY, EASEFUNCTION);

It’s a mathematical function. I wanna to apply an EASEFunction to the PathModifier created by me. The constructor exists but none of the EASEFunctions don’t works in this case. What’s going wrong ?

  • 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-05-28T02:16:26+00:00Added an answer on May 28, 2026 at 2:16 am

    You need to create the Path object first, then pass it to the PathModifier constructor.

    This will work:

    Path path = new Path(coordinatesX, coordinatesY);
    PathModifier modifier = new PathModifier(10, path, EaseSineInOut.getInstance());
    

    I highly recommend you to download AndEngine’s source code, so you can fix such small issues fast and with ease.

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

Sidebar

Related Questions

Oky i am supplying this variable to animate a sprite sheet in andengine. player.animate(new
I'm new to AndEngine programming. I want to move a sprite recreating a complex
I wanna in andEngine execute a sequence (sprite animation) when sprite collides with something.
I would like to do a batch put of entities with pre-defined keys using
I have the following java model class in App Engine: public class Xyz ...
I must be doing something stupid. I'm running this in Google App Engine: class
­I'm starting to use AndEngine in my app. I've used an xml to define
In andngine , I defined a texture, using the following line code: private Texture
AppEngine 1.2.2. I define a class Product like so: @PersistenceCapable(identityType = IdentityType.APPLICATION, table=Products) public
Is there a way to move an entity to another kind in appengine. Say

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.