Attack System Overview

The attack system allows you to add melee and projectile attacks to your character.

To get started add the BasicAttack component to your Character game object.

 

Attacks

The Basic Attack component can define multiple attacks. To add a new attack press the AddAttack button:

You can add more attacks by pressing this button again.

You can remove attacks by pressing the Remove button below the attacks details:

 

Next Steps

To read about Projectile attacks see: Projectile Attacks

To see a video about Melee attacks see: Tutorial - Melee Attacks

Have more questions? Submit a request

6 Comments

  • 0
    Avatar
    Alessandro Salvati

    Where are "Next Steps"? I'd need to set up a melee attack and link it to the animation controller, how do I do that?

  • 1
    Avatar
    John Avery

    Wow a comment. I think you are the first!

     

    There's a melee attack video tutorial here:

    https://www.youtube.com/watch?v=uPFHXQEXt8M

     

    Part II is done too (combo attacks) it just needs to be edited.

  • 0
    Avatar
    Alessandro Salvati

    Thanks for answering!

    I had a better look at the example scenes, trying to copy and emulate them. I'm a bit new to this framework and it takes some time.

    I see there is a Character VS Enemy attack system, and I've got a few questions. It would be handy to know if there's something ready or if I have to write my own code.

    1) Is there a way to hook into the projectile VS enemy system, and play a different extra FX and SFX on impact accordingly?

    2) What if I have custom scenery damageable objects? Like, a rock, or a chest? Should I treat them as "static non damaging enemies" or there is something ready to use?

    3) Can I trigger a loot fountain exiting from a chest?

    4) Are enemy movements limited to simple ones, or is there something ready to use for spline-like terrain (I'm using Ferr2D for my maps)

    5) Is there already a "camera shake" component?

     

    Thanks for your time!

    Edited by Alessandro Salvati
  • 0
    Avatar
    John Avery

    I think that one is better asked via forums at: http://platformerpro.boards.net or via a support ticket.

  • 0
    Avatar
    John Avery

    If you send a support request I can send an unedited version of the combo attack video.

  • 0
    Avatar
    Aldo Alain

    Hello, I opened a request.

    Do you have a video about set up shooting? Please, im stuck there.

     

    Aldo

Please sign in to leave a comment.
Powered by Zendesk