Monthly Archives: August 2010

Random numbers

To create a random number you use this line of code. int Number= (arc4random() % ModNumber)+Firstnumber; so this is relatively simple, arc4ramdom() will create a random int -2147483648 to 2147483647. Then we mod, when we mod an integer it gives … Continue reading

Posted in cocos2d | Leave a comment

RPG Battle in cocos2d part one.

We will be creating a battle scene that could be used in an rpg game.

Posted in cocos2d | 8 Comments

What you need to create an iphone game.

What you need to create an iphone game. An original idea, Game play, Sound, Graphics, Story, An original idea Everything about your game does not have to be original, but the main theme of your game should be. One game … Continue reading

Posted in cocos2d | 2 Comments

Making it rain in Cocos2d

Read this tutorial to learn how to make it rain using particles in cocos2d.

Posted in cocos2d | 7 Comments

Explosions with Cocos2d

With this tutorial you will learn how to create a function that will play an animation like an explosion at a point you give it. In this example the explosion will be played at a touched location.

Posted in cocos2d | 2 Comments

Adding a pause menu in cocos2d

We will be creating a pause menu. This tutorial was a request by Joethemonkey101.

Posted in cocos2d | 9 Comments

Collision in Cocos2d

A continuation of coloring sprites in Cocos2d, we will make the movable sprite change colors when it collides with another sprite.

Posted in cocos2d | 6 Comments

Coloring sprites in Cocos2d

Tutorial about how to change the color of a white sprite. Continue reading

Posted in cocos2d | Leave a comment

Drag a sprite in Cocos2d

This tutorial shows you how to touch and drag an image across the Iphone screen.

Posted in cocos2d | 7 Comments

Moving a sprite to a touched location in cocos2d

Learn how to move a sprite to the location you touch on you iphone.

Posted in cocos2d | Leave a comment