Jump to content
  • Advertisement
Sign in to follow this  

pan and scale the view in cocos2d

This topic is 2837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i'd like to make some tests to learn cocos2d.
the application should make something similar to googlemap (scale, pan, and object on it that i can select)
i have readed many topics but i'm very confused. i don't know if use camera, parallax node, move layers....?
i'm trying to make a simple program for test: the 2d scene i'd like to display is:
1) background image as a map
2) some selectable points on background
3) some other sprite
4) on touch drag and drop i'll pan all objects, on second pan event i'll pan the object from the new location (not the beginning location)
5) scaling with two fingers with the center of scaling is the center of the screen
which implementation should i follow?

for some area selectable i have used sprites with events attached but
when i scale the background, the selectable object must be positioned on the map accordingly...
don't know how to make it
can somone halp me please?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!