sourcemars / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

CCFollow with boundaries set doesn't work #128

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have some sprite 

_truck = CCSprite.sprite("truck.png");
_truck.setPosition(CGPoint.make(400, 240));
addChild(_truck);

(for Desire Z 400px and 240px is the middle of screen - landscape)

and I want set boundaries and camera for my sprite

this.runAction(CCFollow.action(_truck, CGRect.make(0, 0, 1280, 800)));

but it doesn't work. My truck moved but camera didn't. Without boundaries 
everything is ok.

Original issue reported on code.google.com by TheSurix on 12 Aug 2012 at 2:31