Hi everybody!
I’m learning cocos2d-x and developing a “simple” game with 2 more friends but I’m still a beginner and I have doubts about how to achieve some features in our game…
The game is just a sort of “endless runner” but in 2D. Player can run through the streets of a small town, avoiding obstacles and getting coins and power-ups, very simple and common. We’re making the map with tiled map editor but we’d like to give some “life” to the map (i.e. fluent water river, boys playing in a court, people and cars…). You couldn’t interact with them but we’d like to have all that details, just like a town from a rpg game.
I’m starting to know how cocos2d-x works and I’m wondering if I could do that, because I making a “big town”, with a lot of streets and houses where you could get lost, and it requires quite people doing their stuff.
Can I achieve that with cocos2d-x? How can you add multiple animations on a tilemap? For example, I’d like to see a flowing river when the player goes near it. How can I add that animation to the tilemap? Hardcoding it and adding it to a specific coordenate? If I have multiple animations (people, flags, some animals… many of them are repeated and reused tho), should I add them one by one searching all their respective coordenates on the tilemap? What about memory?
I’d really appreciate some help and guidance in this topic please.
Thanks.