making game in pad and iphone - iphone

Respected sir,
I need help .
If I want to make the object move only when the key(button) is pressed. what should I do to shift the position of the object on frames where the key is held down:-
If I pressed left or right button the object should move on that side .
thanks in advance .

It sounds as though you are quite early in the process of making a game on the platform.
A lot of the basics would be covered in a book on the subject which will take you through the steps one at a time.
A good such book is "Beginning iPhone Games Development" available from Amazon.
Alternatively you could have a look at the code examples Apple provides.
The Move Me example is a good starting point as it shows both user interaction and the movement of objects.
Good luck and, above all, enjoy.
Teo

There is a fantastic page with tutorials from Mike and I guess you will find an answer there.
http://www.71squared.com/iphone-tutorials/

Related

How can I make the HUD change in different levels? [Unreal Engine]

So I have recently started using Unreal Engine to start game development, and it is going well so far. (I am extremely new by the way, I started yesterday, but I do have programming experience). I am trying to make a HUD, the problem is, I also made another level, but I do not want the HUD to show up on that level, rather I would like to use another HUD. How can I switch between HUDs depending on the level?
I have tried YouTube but found nothing that answered it specifically.
Thanks in advance, and English is not my first language so I apologize for my bad grammar.
you can use the level blueprint to display the hud and when u change levels if the other level has a different hud u want to use you can do the same and use the level blueprint to do the same hope this helps.

In-app tutorial

Im looking at adding a tutorial kind of thing to my app. Basically I want to be able to give a quick message across of what the parts in the app do. I want the users to see it once and not again. I have searched relentlessly for this but I always found app building tutorials.
A lot of games have what I want but I cannot for the life of me find how to do it or, what it is called to find a tutorial. Could someone please help me out.
Thanks in advance,
Sam
You'll need to build it yourself.
What I usually do is, on top of the view i want to explain, add a semi transparent view with some arrows pointing at stuff and a small text/button explaining it. All of that has to be modal and you can save in the NSUserDefaults if the user has already seen it/skipped it/launched the app for the first time. You'd have a method that builds all those views and you simply call it in viewDidLoad (by checking against a simple boolean value store in those previously mentioned NSUserDefaults, for example)

Rolling Effect - Cocos2d

How would I go about making a sprite "Roll Up" like the app "Roll It Up" on the App Store?
Does anyone know? Can anyone lead me in the right direction?
Thanks
See this Mac Apple app. Here they used CoreImage. This might helps you.
http://developer.apple.com/library/mac/#samplecode/CITransitionSelectorSample/Introduction/Intro.html
This is incredibly basic. My "jerk" answer is this: Do some tutorials and learn how to use cocos2d.
My non "jerk" answer is this: You need to use CCTouchesBegan to find what is being touched, CCTouchesMoved to move the sprite (hint: touch position = sprite position), and CCAction methods for animating the sprite.
The best advice I can give is to go to this site RayWenderlich.com (iOS development tutorials)

How to Implement a Cool Alert/Information Overlay on iPhone?

I understand how to include a standard alert within my iPhone application, and can dismiss it with an OK or CLOSE button (see Epicurious example in image).
How can I make a cool alert/notice overlay like the one seen in the foursquare app (see foursquare example in image)? In particular, how to include the alert/notice layout with graphic. Is this a separate view?
If you can point me to a tutorial or sample code that will get me moving in the right direction, it's much appreciated! :)
Answered here.
Jeff Lamarche has a nice write up on the topic here
Sam Vermette has a nice blog post about this http://samvermette.com/309
And this is his corresponding github project.
It's as easy as this:
[SVStatusHUD showWithImage:image status:#"Hello World!" duration:3];

Text Editor like Pages iPad App

I want to implement a functionality similar to found in Pages app..i.e. text floating around images, image zooming etc.. I have been struggling with this part of my application but no success yet. Would be grateful if someone provides me with some pointers in this regard , like 'Which UIControl should I use?','Help in thinking logic' etc..
Thanx in advance.
Sounds like a fun app to develop.
Some Pointers:
Immediately off the bat, I would say look into creating your own Controls for the floating objects.
I would suggest tackling a smaller project, or maybe a few small to medium size projects. p
Try making a few apps with WinForms or WPF. Also look into XSL:FO.
Immediately off the bat, I would say look into creating your own Controls.
There was a WWDC session that talked about iOS text. I don't think it's violating NDA to say this is going to be a very hard project. No, make that very, very, very hard.
You will probably need to do all UI yourself, and use Core Text for rendering of the text. (But I believe you need to draw selection, etc.) And do the layout yourself.