The Daily Click ::. Forums ::. Klik Coding Help ::. Idea of monster moving
 

Post Reply  Post Oekaki 
 

Posted By Message

Mr Silverfish



Registered
  23/07/2004
Points
  8
1st May, 2005 at 07:30:25 -

I just wonder if you think its a good idea to let another player control neutral monsters in battle? like in heroes 3 when you attck monsters to get his treasure your friend (or enemy ) controls the monsters (only works if you are competing against each other ofcourse)

 
n/a

Airflow

imafirinmahlazr

Registered
  24/09/2003
Points
  -197

VIP MemberSonic SpeedSnow Cloud!Computer
1st May, 2005 at 07:44:59 -

It sounds like a good idea. Yet, it also sounds tricky to make.


 
n/a

Cybermaze



Registered
  03/04/2003
Points
  853
2nd May, 2005 at 06:05:49 -

Im not sure excactly what you mean.

If you mean you control a friendly monster just like you control the player (just not at once), it would be very easy.

One method:
You could just create 2 active player objects and set them to be controlled by player one, using 8 direction or whatever youd like.

Then at start of level, simply destroy the monster player object and replace it with a dummy monster (another active object that just stands there).

When you want to control the monster, destroy the player object and show some dummy object. Destroy the monster dummy and create the real monster object.

Another method:
Setup player 1 and 2 to have same keys (I think thats possible). Then create two player objects, the player (player 1) and monster (player 2).

Then simply use ignore/restore control on the two players.

There are even more ways to do it depending on your game and control method.

 
If you knew, I would have to kill you...

Mr Silverfish



Registered
  23/07/2004
Points
  8
3rd May, 2005 at 04:02:49 -

nah not that, let say if you are playing a turn based game. When its your opponents turn he attacks some neutral monsters (not owned by you), but you get to control them.
instead of an AI, a human is often more difficult to beat than AI.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click