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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2011, 02:15 AM   #1 (permalink)
Newcomer
 
Join Date: Jun 2011
Location: Caguas, PR
Age: 18
Posts: 46
RomanRobot is on a distinguished road
Smile Draw symbols to cast spells in a game

I am working on a Cocos2D game. What I want is for the user to draw a symbol that will execute a spell/action according to the predetermined symbol it most resembles. Cocos2D's OpenGL View is sitting inside of a view controller so I can still do UIKit stuff over it if necessary. So can you point me to a guide or something to simply implement what I'm looking to do?

RomanRobot is offline   Reply With Quote
Old 08-06-2011, 02:21 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

you should be able to use UIGestureRecognizer to create a custom gesture
Documentation: Event Handling Guide for iOS: Creating Custom Gesture Recognizers
An Example for implementing it: Custom Checkmark Gesture Recognizer - Conceited Code
and you can use it in cocos2d: Adding UIGestureRecognizer support in cocos2d cocos2d for iPhone
in particular look this fork that show how to do it: https://github.com/xemus/cocos2d-iphone
__________________

Last edited by dany_dev; 08-06-2011 at 02:23 AM.
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
cast, game, ocr, spell, symbol

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: 394
14 members and 380 guests
7twenty7, blasterbr, buggen, chiataytuday, dedeys78, dre, fiftysixty, HemiMG, jimmyon122, jonathandeknudt, LEARN2MAKE, pungs, tymex, UMAD
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,669
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, dedeys78
Powered by vBadvanced CMPS v3.1.0

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