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 02-28-2011, 08:19 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 24
jackosx is on a distinguished road
Default Trouble with SneakyInput

This is probably a really dumb question, but I can't get the sneakyinput joystick to work between layers in cocos2d. I get the error "leftJoystick undeclared" I have retained in my HUD.m layer. Can it even work through different layers? Sorry, I'm really new to all of this.
jackosx is offline   Reply With Quote
Old 02-28-2011, 09:37 PM   #2 (permalink)
Registered Member
 
missing_no's Avatar
 
Join Date: Feb 2011
Posts: 41
missing_no is on a distinguished road
Default

Quote:
Originally Posted by jackosx View Post
This is probably a really dumb question, but I can't get the sneakyinput joystick to work between layers in cocos2d. I get the error "leftJoystick undeclared" I have retained in my HUD.m layer. Can it even work through different layers? Sorry, I'm really new to all of this.
"layers" do you mean header xxxxxx.h and implementation xxxx.m files?

you need to make sure you "@synthesize" the object in the implementation, you can't retain what has not yet been created.
missing_no is offline   Reply With Quote
Old 03-18-2011, 10:00 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 24
jackosx is on a distinguished road
Default

Quote:
Originally Posted by missing_no View Post
"layers" do you mean header xxxxxx.h and implementation xxxx.m files?

you need to make sure you "@synthesize" the object in the implementation, you can't retain what has not yet been created.
No, I have a controls layer, and a gamelayer. I also did synthesize it. What other problems could there be?
jackosx 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: 423
7 members and 416 guests
chemistry, ChrisYates, hussain1982, Retouchable, skrew88, SLIC, 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:13 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0