The bouncing bits
Author: | J.A.P
|
Submitted: | 23rd June, 2004
|
Views: | 4772
| Rated: |
|
|
Today I'll teach you to create a cool splat of the enemy or player. This means that some gore and blood are created from object AND they bounce like in reality ( subtracts 50% from the bouncing power ). When the gore has bounced enough they are destroyed before they fall through the floor.
INDEGREDIENTS YOU'LL NEED:
-Player sprite (not necessary)
-some gore or person bits
-a floor (quick backdrop or backdrop) as obstacle
...And the coding (or may I say... engine?) goes like this:
*always
- set Y position of the gore to 'Value A("gore") /5'
- add 1 to alterable value A of gore
*start of level
- destroy the Player
- create gore(or whatever) from Player (x10)
*(gore) collides with the backround
- set value A to 'Value A("player rocket") /2 *-1'
- add 1 to alterable value B
*alterable value B of (gore) is 5 or greater
- destroy gore
...and that's it, thank you.
|
|
J.A.PPossibly Insane
Registered 11/06/2004
Points 2048
|