Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-21-2010, 08:31 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 51
CVinecombe is on a distinguished road
Default Cocos2D sprite/layer visible question

When you set visible = FALSE for a sprite or layer, does this stop cocos2d from rendering the image?

I'm working on a tile based game where I always know how many map tiles will be on the screen at a time, but I wanted to implement my own simple clipping by turning everything to visible = FALSE and then only turning on visibility for sprites that are currently on the screen. Just curious if this would solve my problem.

If anyone has a better way to do some simple clipping like this I would appreciate it. Thanks!
CVinecombe is offline   Reply With Quote
Old 06-25-2010, 07:25 PM   #2 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 2
jmurff is on a distinguished road
Default

How To Make a Tile Based Game with Cocos2D | Ray Wenderlich

There is great example here. 2 part tutorial and someone even carried it further adding a 3rd part. makes it very clear.
HTH
-jim
jmurff is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 402
11 members and 391 guests
7twenty7, ChrisYates, djohnson, Duncan C, gmarro, hussain1982, Kirkout, Retouchable, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0