Questions tagged [ccscrolllayer]

CCScrollLayer Adds scroll feature for layers in cocos2d.

SDK Download: Here

API Reference: Here

21 questions
6
votes
1 answer

issue with CCScrollLayer in cocos2d-iphone-2.1-beta2

Hi there I'm having problems as stated with CCScrollLayer in the lateste cocos2d beta, mainly that on compiling I get: use of undeclared identifier 'CC_GL_BLEND'. Is there any way to sort this problem that anyone has found yet?
simonthumper
  • 1,834
  • 2
  • 22
  • 44
4
votes
3 answers

How do I change CCScrollLayer content size? (cocos2d extension class)

I am currently using the CCScrollLayer (in the cocos2d extension classes) class to implement a menu system. It's working great but I would like to have other buttons on the screen and the scrollable area is the entire screen by default. I tried…
3
votes
3 answers

Image which I loaded in thread is not appeared

I'm using the CCScrollLayer and I wanna prepare images during player select the stages. It's simple but when I scroll stages, it tasks time(delay to load images). so I decided to use NSThread. and I got a message "cocos2d: CCSpriteFrameCache: Trying…
Bright Lee
  • 2,306
  • 2
  • 27
  • 55
3
votes
1 answer

Custom scroll in Cocos2D Layer

Please see image. How can I create custom scroll layer like this in cocos2D game? I used CCScrollLayer but that scrolls one page at a time. I want to scroll only one sprite on scroll. Is it possible to do same with CCScrollLayer ? If not then is how…
Guru
  • 21,652
  • 10
  • 63
  • 102
2
votes
2 answers

CCScrollLayer issues in cocos2d

i am having this problem try to use the cocos2d CCScrollLayer I have added the CCScrollLayer classes to my scene, and having this 3 problems: 1. it is not get touches 2.it puts the backgrounds (landscape) one on each other, like this: page1 is in…
user1280535
  • 347
  • 3
  • 13
1
vote
1 answer

more then one CCScrollLayer

I have two CCScrollLayers in one scene (implementation) in an Xcode iPhone project with cocos2d. It only works with the last created scrollayer. Why? How can it be done to work with both? Not working = looks like static object with no interation =…
mayoxy
  • 89
  • 6
1
vote
1 answer

Can not scroll when add 2 CCScrollLayer in a layer

I'm using CCScrollLayer files at here CCScrollLayer for my cocos2d-x project (version 2.2.2). I adapted them to make it can scroll vertically. And I got a problem: when I add two CCScrollLayer in a layer, I just can only scroll the last…
nvg58
  • 891
  • 1
  • 8
  • 17
1
vote
2 answers

CCScrollView with CCControlButton. How to control the touch area?

I have CCScrollView with container with CCControlButtons, when the buttons scroll out of the visible CCScrollView area, They are also can be touched too. How can I control the area ?
Tomasz
  • 1,406
  • 1
  • 18
  • 28
1
vote
1 answer

how to scroll CCLayer smoothly?

I want to scroll my map by touching. Could you give me basic concepts how to reach it? Here is my ugly simple code. Just modifying layer's position by each touch moving. It works, but it's not cute as could be. .h CGPoint *touchBegin; CGPoint…
Neil Galiaskarov
  • 5,015
  • 2
  • 27
  • 46
1
vote
1 answer

How to convert this objects from cocoa touch to cocos2d

I've got something like this in my game now: It's UIView in UIScrollView. This UIView can be width of 480px or 960 etc. +-----------------+ + UIScrollView + ++---------------++ ++ UIView ++ ++ ++ ++ p …
Tomasz Szulc
  • 4,217
  • 4
  • 43
  • 79
1
vote
1 answer

CCScrollLayer or other way to make gallery view vertically scrollable

I'm trying to make a scrollable gallery in my app with using cocos2d 2.0, something like collection view in ios6, but it's my third day of trying figure out how to scroll anything vertically. I started with CCScrollLayer and I use it as a scrollable…
Maciej Chrzastek
  • 1,380
  • 12
  • 18
1
vote
1 answer

Using glScissor on a modal layer in cocos2d

I am coding a modal layer in cocos2d and I would like to use the OpenGL glScissor API call to crop the inside of a CCScrollLayer that I am using, Basically, Present some kind of Modal sprite Put CCScrollLayer with assets on the modal sprite I want…
zardon
  • 2,910
  • 6
  • 37
  • 58
1
vote
1 answer

How to get CCScrollLayer to scroll?

I am trying to get CCScrollLayer to work in my cocos2d app, but it won't scroll. Here is what I did: Using the cocos2d template, created a iOS cocos2d project. Added the CCScrollLayer files, and imported into my HelloWorldLayer class. Added a…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
1 answer

How to make CCScrollLayer have multiple avatars per page

I have a list of about 10 avatars and I am using CCScrollLayer to display paging. Currently, it only shows 1 avatar per page, and I would much prefer if it showed 3 avatars per page but I am unsure of how to do this. I've attempted to ensure that a…
zardon
  • 2,910
  • 6
  • 37
  • 58
0
votes
1 answer

Scroll CCLayer horizontally in cocos 2d in Android

I am Working Android game using cocos 2d. I have Main Activity and Layers added on Main Activity in my Layer. I have 5 sprites and I have to use scroll view to scroll all sprites horizontally so user and perform further task on each sprite but I am…
Arun Thakur
  • 55
  • 10
1
2