1) Keep your code as short as possible. This makes it easier to work with.
2) Use variables! They help to keep everything in order and easier to understand.
3) Use other peoples information to your advantage. If you don't know how to do something, look it up on the net.
Thursday, April 3, 2008
Tuesday, April 1, 2008
Make 2 Balls Move Around The Stage Randomly
How To Make A Sprite Chase Another Sprite
In this tutorial I am going to show you how to make a sprite chase after another sprite.
Step 1:
Choose your sprites.
Step 3:
Now get the second sprite following the first and moving towards it slowly.
Lets Begin:
Step 1:
Choose your sprites.
Step 2:
Get the sprite that will be chased moving and bouncing off the edge in a random direction.
Get the sprite that will be chased moving and bouncing off the edge in a random direction.
Step 3:
Now get the second sprite following the first and moving towards it slowly.
If you want to you can make it so that when the sprites touch they say things to one another, but this is only an optional option. To do this use the following code:
Subscribe to:
Posts (Atom)