Geniusbear: Need some behaviors willing to pay -.-"

GeniusBear

  • Posts: 55
Hello everybody,

Since I'am new in to this I still don't get the point how to make the correct one, for my game idea,
I need the follow ones, maybe they already exist or maybe they need to be made.
-An action that my animation changed after being hit.
-An action that I am able to hit someone with a "mace,axe" when I push a button.

Well that was all,
PM if you need specified information

Gr.Maarten
-geniusbear.com
Do you need art for your game? Here are some demo's from my upcoming game:
http://www.geniusbear.com/demo/lumberjackdemo.png
http://www.geniusbear.com/demo/clouddemo.png

Satyre

  • *
  • Posts: 270
As far I understood your desired behaviours. I guess the animations are for your lumber?
I would make them like this:

- Behaviour "Animation Change After A Hit:
1. Set up the collision groups first. Be sure that the actors can collide and respond to each other.
2. Be sure that your actor-animations have some collision shapes.
3. Choose the collision group at the actor's properties.
4. Try out the behaviour in the attachment.

I added 2 controls to be sure that the collision is not infinite and to let the actor recover (beeing invulnerable) for a desired time.


- Behaviour "Attack By Hitting Button":
1. Set up a control for the button.
2. Create an attacking animation.
3. Set up the actor's attacking animation and his collision group.
4. Be sure that your actor-animations have some collision shapes.
5. Choose the collision group at the actor's properties.
6. Try out the behaviour in the attachment.

I added 1 control to be sure that the actor can not attack infinite times and to let the actor-attack recover for a desired time. The attack animations should be for every possible direction. I added a control, to be sure that the right animation will be switched for the last direction. Also the attack animation will be changed after the attack to the idle animation.

If you need some editions for the behaviours or have questions for the behaviours, just post your ideas here, but a sample project would be helpful.

Drag the behaviours into your actor behaviours window at the gamecenter of stencyl.

GeniusBear

  • Posts: 55
Hello Satyre,

Thanks for your help! I am working it out now.
Soon I will give you a preview.

gr.Maarten
geniusbear.com
Do you need art for your game? Here are some demo's from my upcoming game:
http://www.geniusbear.com/demo/lumberjackdemo.png
http://www.geniusbear.com/demo/clouddemo.png