Ooops.... This is covered under another topic ...
http://www.cocos2d-iphone.org/forum/topic/1314
how do you do your scroling? move the content or the camera?
(33 posts) (16 voices)-
Posted 2 years ago #
-
Sorry to revive an old thread.
In my scroller game, I followed the advice here and moved the camera instead of the layer. The result is terrible. The scrolling is not smooth at all.
Then I replaced the camera moving calls with layer moving calls with the same delta, and everything is smooth.
Does anybody have an idea why ?
Second, I have black blinking lines between my sprites. I have already read several threads about this problem, but could someone explain the technical reason for this ?
Edit: One last point, if I set 2D projection I have nothing on screen anymore :-/
Posted 2 years ago # -
I found that cocos2d has included a sample code how to drag map. but it doesn't use camera method. is there any way i can move the map by using camera method So all my obstacle list coordinate i have set in the iPhone coordinate still there.
Posted 2 years ago #
Reply
You must log in to post.