0

I am trying to move a sprite from the top to bottom of the screen but I do not have any success at this moment... I've used the following as example.

In this case, the sprites, are moving from left to right, and in my case I want to move them from top to bottom.

Can anyone give me a help on this?

How can I proceed to make this work?

Hugo Dozois
  • 8,147
  • 12
  • 54
  • 58
leonardo
  • 121
  • 1
  • 5

1 Answers1

0

Use CCMoveToAction for moving a sprite. For the movement of sprite from top to bottom

    //to get total size of display
    CGSize winSize = CCDirector.sharedDirector().displaySize();
    CCMoveTo moveTo = CCMoveTo.action(1,
            CGPoint.ccp(width, ));
Rishabh Bhardwaj
  • 832
  • 8
  • 20