Need help with attacking please

VGXVGX Member Posts: 796
I can't seem to find anything on how to attack with a weapon. I want to basically have an actor with a weapon and attack an enemy, how do I do this? Is there any thing about this that I can't see in another thread, videos or templates?

Thanks

Comments

  • ElfizmElfizm Member Posts: 489
    I don't know who you think you are! I see nothing but questions and wanting demos from you. GameSalad is not for collecting everybit of free stuff you can. Why not give back something in return for once. Oh wait you have done that already with your great logos :P

    Serious note, depending on how your going to tackle this approach either by animations or by movement of your weapon. Or spawn if it's a gun.

    However if you could explain a bit more it would help :)
  • VGXVGX Member Posts: 796
    lol, yeah I don't know what would be better,
    A) Design the actor with a sword and do the animate behaviour.
    B) Design the actor and design the sword separately and attach/constrain it to the actor.

    Then need to know how to attack an enemy with just the sword bit.
  • VGXVGX Member Posts: 796
    Yes, no?
  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    Design Actor with sword via animate,
  • VGXVGX Member Posts: 796
    Cheers.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited April 2013
    I don't know who you think you are! I see nothing but questions and wanting demos from you. GameSalad is not for collecting everybit of free stuff you can.
    Lol! @VeiraGames My hope is that everyone who received a free logo finds a way to help you out with coding/logic support.

    You'll definitely be much happier if you change the image and/or animate the image rather than constraining a weapon to the main actor.

    You're also only then dealing with one actor the whole time no matter how many weapons you decide to have. Each weapon can have a tableCell or game attribute (e.g. game.hasSword=true).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • VGXVGX Member Posts: 796
    Will have to go back and redo certain stuff like changing the actor sizes so that a weapon can fit the image. Only problem is that need to make sure the art won't get blured on the creator (why the *#%$ did I choose to do pixel art?!) It's all good, happy days! Thanks
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I think if it's simple movement like in Fastar (http://toucharcade.com/2010/07/29/fastar-review-who-knew-fighting-angry-squares-would-be-so-much-fun), you could get away with constraining a weapon.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • LeonardDeveloperLeonardDeveloper Member Posts: 4,630
    I'd recommend constrain and rotate if your dealing with pixels, It just eases the whole situation!
Sign In or Register to comment.