-1
\$\begingroup\$

how to remove SceneTouchListner at a specific point?

I am Working on a Endless Runner Game. my player is jumping onSceneTouchListner when player is collide with a barrier i want to remove TouchListner because i attached a particle effact that burns my player.

\$\endgroup\$
0

1 Answer 1

-1
\$\begingroup\$

finally I got Solution ..............I am Creating a new IOnSceneTouchListener tv= new IOnSceneTouchListener() {

                @Override
                public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent) 
                {
                    if(pSceneTouchEvent.isActionUp())
                    {
                        player.animate(new long[]{200, 200, 200},9,11, true);   
                        return true;
                    }
                    return false;
                }
            };

and the just write scene.setonsceneTouchListner(tv);.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.