need to conceptualize: how to hit a monster with a sword

hi all: i need to realize a simple movement. the common hero, the monster and the sword. before modelling, scripting and so on i have to understand some simple things.

i wish to hit the monster with an axe and i want the monster move his head, nothing special… but i’ve encountered many troubles.

i’m using 2.46 version. i’ve realized a stupid study with just two cubes to clarify (in my head) what’s going on.

some questions:

  1. why can’t i use action actuator in ge? tried using ipos and all went well.
  2. why can’t i use collision sensor? does it really works?
  3. how can i simply “reload” my movement? in the blend file in the attachment you can see the movement has to finish completely before i can “attack” again.

thank you all in advance for your time :slight_smile:

Attachments

studio movimento testa mostro.blend (143 KB)

  1. You can only use the action actuator with armatures.
  2. Yes, the collision sensor works; you must make sure that you set the correct parameters to collide with, I recall.
  3. You can reload the animation by using a property rather than just using play, I believe.
  1. if i set to the “monster”:

monster sensor: always
monster controller: and
monster bone actuator: MuoviTestaMostro (the action used to move its head)

it doesn’t work.

so, how can i use the action actuator in ge?

  1. i suppose i only have to choose the object with a specific property: in fact, i’ve set every parameter but seems not to work.

  2. ok, i’ll try it, thanx :slight_smile:

un) Does the monster have an armature? If so, are you sure you named the action?

due) You can add a “Weapon” or whatever property to the axe, and give the monster a collision sensor looking for that property.

tre) Learn how to use integer properties and the Property Actuator if you are using this method.