Quantcast
Channel: cocos2d-x - Cocos Forums
Viewing all articles
Browse latest Browse all 2748

Scaling the map / using Follow

$
0
0

@tranthor wrote:

Hi,
I’m using tiled maps and the cocos class Follow, for follow the main player around the map. The problem that i have is when i want to scale the tiled map. It works. But when i scale the tiled map, Follow doesn’t work anymore. Videos:

Without scaling:
https://vimeo.com/359823935

Now, scaling:
https://vimeo.com/359823871

tiledMap->setScale(0.8);

Follow:
tiledMap->runAction(Follow::create(tiledMap->getChildByName("myCar")));

How can i fix it?
Thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2748

Trending Articles