Parabolic sprite movement of swipe with speed - iphone

I want to move a sprite with swipe gesture, like it start from one place and with angle it end with trajectory, I really don't know where to start this thats why i am not posting any code here. Any direction or piece of code will be appreciated. Note: Should I use cocos2d for this or any physics engine like box2d or chipmunk would be needed?
Regards

I would recommend you start here: http://www.raywenderlich.com/tutorials. There are tons of great a well explained tutorials to help you get started with cocos2d. I might recommend looking into using a physics engine like Box2D. An introduction tutorial is here: http://www.raywenderlich.com/457/intro-to-box2d-with-cocos2d-tutorial-bouncing-balls.

Related

Unity animated ribbon effect

Could tell me how to make these yellow animated ribbons like the ones seen in this video were made? https://www.youtube.com/watch?v=x9dtp2PSrPg
Is it made using a particle system? Or do you think it was made outside of Unity?
I'd love some direction on how I could recreate this effect. (I'm quite new to Unity so any help is appreciated)
Thanks!
If it is for a video, go for Adobe After Effects + Trapcode Particular:
https://www.redgiant.com/products/trapcode-particular/
In Unity: waaay more difficult. Probably procedural spline-based mesh generation. You need to know lot of stuff about bezier curves, 3d meshes, what exactly is a vertex in a 3d model and other strange things.
And everything it's explained quite well here:
https://www.youtube.com/watch?v=o9RK6O2kOKo
P.S. #Night.owl You owe me two beers, mate :) ahahaha
Tiziano is right. You can use Procedural but I think that is complicated. If you are advanced then you can do that.
There is an easier way to do this like you asked. It is called LineRenderer
You need to learn Coroutine first, then animate the LineRenderer by moving the position of the LineRenderer's points in coroutine. This is the easiest way of doing this in unity.
If you look at the video below at 0:27, you will see what LineRenderer can do.
https://youtu.be/9hE7-rGg7Tg?t=27
Learn about animating with LineRenderer
https://www.youtube.com/watch?v=Bqcu94VuVOI

Bouncing Particles in a CCParticleSystemQuad

I'm using cocos2d to make a game on iOS. I have a particle emitter that I want the particles to bounce when they hit the bottom of the screen. Thing is I cannot seem to find a way to do this and with my limited understand of open GL the answer my be obviously in front of me but I don't see it. Is there an example of this or a way to use the CCBounce or box2d or something?
Here is a bouncing ball tutorial which uses cocos2d + Box2D:
http://www.raywenderlich.com/457/intro-to-box2d-with-cocos2d-tutorial-bouncing-balls
There is also EaseBounce actions (CCEaseBounceIn, CCEaseBounceOut, CCEaseBounceInOut) in cocos2d for you to run on sprites. See "EaseBounce actions" section in "cocos2d Programming Guide: Actions - Ease".

Which to use when - COCOS2d or simple UIImageView with animation?

I am going to create simple iPad game, in which arrow going to hit balls. Where balls are moving in random direction with random speed. When arrow hits ball there is blast like animation with sound (Collision detection is main thing here). So for this what should i prefer. Should I use simple UIImageView and animation or use COCOS2D. Also I am new to COCOS 2d. Any other options are also appreciated. Thank You.
Use cocos2d Animation .Refer below link
if u have spritesheets try this:
1) http://www.raywenderlich.com/1271/how-to-use-animations-and-sprite-sheets-in-cocos2d
or u have separate images refer this:
2) http://cocos2d-iphone.org/wiki/doku.php/prog_guide:animation
Using cocos2d has a lot od advantages over UIKit. One of the things is box2d which will be very helpful for game like this [at least I got this impression for your question].
Do some research about box2d collision detection.

How to move water in iphone cocos2d?

I am trying to create an application very similar to iBeer I want to fill iphone from virtual water and can shake it so it produce bubbles? I tried to search any similar example of code as I am very new to cocos2d but I can't. I wanna know how can I do this? Any helpful links? Do I have to use chipmunk or anything else?
Thanks
Mani
Cocos 2D mainly serves to display sprites particules and otehr visual effects
The actual physics of it are handled by Chipmunk.
chipmunk is not so much a fluid engine but given enough small objects you can aproximate something like iBeer.
I remember seeing a video demo of chipmunk that did it.
I'm never did something close to that with chipmunk but try asking on the offcial forum
http://www.slembcke.net/forums/viewforum.php?f=1
they helped me out a lot and the author of chipmunk (scott) is very reactive and helpful.
thats the use of accelerometer and you affine transform your views
This explanation of animated water may be helpful.

How to make objects flying around in a view

How is it possible to let some objects fly around and bumb at the end of the view and collide on each other.
The second step would add acceleration of the objects by shaking.
I haven't found a tutorial yet or some step to begin at.
thanks a lot for your help :)
Heres a picter of what i image(only a still)
http://picfront.org/d/ZdSvK9G8D/flying_circles.jpg
Take a look at Cocos2d for iPhone. Google will help you find many tutorials for this framework.
What you need to search for are tutorials on "Collision Detection." Cocos2D is a great place but you will also need a physics engine - Box2d and Chipmunk are both physics libraries that can be used. Some good videos on youtube for cocos2d tutorials and physics engines to see if this is what you are looking for.
Matthew