I want to do an advergame. Its quite simple but i dont know which rules do i need to create.
The game works this way.
Theres 2 characters: 1 male and 1 female
The character starts at the bottom of the platform and the product starts to fall from the top (there are about 5 products)
1 type of enemy: a razor which will appear on the left and will go to right of screen.
If the razor hits the character, his hair will go smaller (its a hair product).
And each level, the character's hair, will go bigger (there will be 5 levels).
My question is: how to make the products to drop at a random rate and how to make the hair change its size when got hit by an enemy or level change?
thx in adv (if didnt understood i can make an image to make things clear)
a random rate:
+ Every random(3001) + 1000 milliseconds
(drop at a random rate between 1 to 4 seconds)
to change the size of the hair create several frames of the hair from short to long, and set the animation frame according to the collisions.
Develop games in your browser. Powerful, performant & highly capable.
where is this action drop ?
There's no such action. It was an indicator that your actions to drop something would have to be inserted there. The point was to show a way to create a random rate by using "every x milliseconds" in combination with the expression random() <img src="smileys/smiley2.gif" border="0" align="middle" />
i did understood how to make the random drop but i didnt managed to make them drop at those random rates (+1 milliseconds each sprite)
here are the rules
<img src="http://img830.imageshack.us/img830/2011/rulescap.jpg" border="0" />
I added the bullet behavior to the each sprite (the ones that will have to drop)