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 09-03-2011, 09:20 PM   #1 (permalink)
Registered Member
 
MegaJiXiang's Avatar
 
Join Date: Apr 2010
Posts: 53
MegaJiXiang is on a distinguished road
Default Perfect Virtual Controls for your game

I come by every now and then to drop off game programming gifts. Today's gift is how to program perfect virtual controls. Please feel free to ask any questions you like.

Video of best virtual control method:
Best iPhone virtual controls (buttons+stick) - YouTube

New improved version:
New Best Virtual Controls free up 95% of the screen - YouTube
__________________
IceCubes 1.0 (new game) is out!

iResize 1.97 is out!

Follow me on Twitter! @MegaJiXiang

Follow me on Tumblr! CoreMega

Last edited by MegaJiXiang; 09-04-2011 at 07:26 PM.
MegaJiXiang is offline   Reply With Quote
Old 09-04-2011, 01:13 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 176
Rifts is on a distinguished road
Default

That awesome but whats the point if you aren't going to post source?
Rifts is offline   Reply With Quote
Old 09-04-2011, 01:22 PM   #3 (permalink)
Registered Member
 
MegaJiXiang's Avatar
 
Join Date: Apr 2010
Posts: 53
MegaJiXiang is on a distinguished road
Default

Quote:
Originally Posted by Rifts View Post
That awesome but whats the point if you aren't going to post source?
The point is to show you the best way to make your virtual controls work. What you are seeing is some basic lines drawn on the screen and 2D vector math. Anyone making a game should be able to watch the video and copy what I did. I did post code on this forum and blog for programming the best multitouch so just take that and add onto it.
__________________
IceCubes 1.0 (new game) is out!

iResize 1.97 is out!

Follow me on Twitter! @MegaJiXiang

Follow me on Tumblr! CoreMega
MegaJiXiang is offline   Reply With Quote
Old 09-04-2011, 07:25 PM   #4 (permalink)
Registered Member
 
MegaJiXiang's Avatar
 
Join Date: Apr 2010
Posts: 53
MegaJiXiang is on a distinguished road
Default

Made them even better!

New Best Virtual Controls free up 95% of the screen - YouTube
__________________
IceCubes 1.0 (new game) is out!

iResize 1.97 is out!

Follow me on Twitter! @MegaJiXiang

Follow me on Tumblr! CoreMega
MegaJiXiang is offline   Reply With Quote
Old 09-05-2011, 07:49 AM   #5 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Just a quetion, why you prefer to move the yellow cirlce also when user "fixed" it? I mean, when a user tap a part of the screen and then move it on the right, doesn't expect to move also the d-pad......

I Hope make sense for you
__________________
dany_dev is offline   Reply With Quote
Old 09-06-2011, 03:36 AM   #6 (permalink)
Registered Member
 
mglibic's Avatar
 
Join Date: Apr 2011
Posts: 14
mglibic is on a distinguished road
Default

This is superb dude thanks!

could you post some source code here? or maybe to pm?
__________________
Pero the pig game

Youtube video
mglibic 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: 386
13 members and 373 guests
7twenty7, apatsufas, comicool, Creativ, Dalia, dansparrow, Duncan C, HemiMG, heshiming, LunarMoon, Murphy, pbart, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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