Follow Me!(the “princess in distress” algorithm and how to use it)

21 06 2009

For a time ago, I’m working on my videogame. I’m very concerned more in the game/level design, than in the development side of the game.

What I’m doing is taking a basic platform engine made in Actiosncript 2, port it to actionscript 3 and use it straight. The only programming tasks that I’m doing are scripted events and IA programming. The rest is art job and level design.

BUT! from time to time inspiration comes to me, and from my brain pop’s up a nice algorithm that I can use. So I spend some time implementing it and then I try to figure out where in the game can go.
The last algorithm that comes to me was the “princess in distress” algorithm. This describes how an hostage follows his savior in order to escape from where he/she is captive. This follows these rules:

1. The princess will stay still, scared
2. When the savior touches the princess, the princess will feel strong enough to escape, and start follows the savior.
3. The princess will stop follow the savior if he starts a fight, goes out of sight or if he perform a physic act that is not possible for the princess(like jump a very long distance)
4. When the princess stop follow the savior, will close her eyes and wait for the savior touch her, in order to restore her confidence.

This triggers a lot of gameplay and lots of puzzles if the level is designed for a stealth mission. The hero must hide not only himself, but also the princess.

Hope show the project I’m working on very soon.


Acciones

Informacion

Una respuesta a “Follow Me!(the “princess in distress” algorithm and how to use it)”

21 06 2009
Hernan M (18:52:58) :

Muy bueno!!! Espero poder probarlo pronto

Deje un comentario

usted puede usar estos tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>