Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Animate character shooting

butterbeanbutterbean Posts: 4,315Member, PRO
edited 4:29PM in Working with GS (Mac)
So if you wanted to animate a main character, aiming a gun, would you just do a spawn behavior rule?

Or animate behavior rule, and show the actor moving it's arm up pointing the gun and shooting?

Sorry, there is probably a simple solution to this, but just wanted to see how people on here are approaching it



  • JGary321JGary321 Posts: 1,246Member
    Easiest IMO is to create it using animation. It's going to look the best.
  • quantumsheepquantumsheep Posts: 8,188Member
    I was having thoughts about this, and it might be along the same lines, so could be useful to you.

    Basically, you'd have a character that can move left and right and jump for example.

    You would tap on the screen to shoot in that direction.

    While facing right, if the mouse position is above a certain height, you'd replace the character's image with one pointing towards that height. Say 'High'.

    Then a different image would be used if the character aimed at mid height.

    And another if the mouse was 'low'.

    A bit like the old Bungie game 'Abuse'. Or Turrican. Or any number of others ;)

    The only issue I was having trouble with (in my head, as in visualising it, because I haven't written anything yet) was the amount of variations dependent on if the character was standing still, or moving.

    Anyway, hope that helps.


    Dr. Sam Beckett never returned home...

  • Vanny_ArtsVanny_Arts Posts: 16Member
    Well in my case I use the spawn behavior since I'm using the keyboard to move.
    But I can't find a way to shoot when turn left.

    Jump=down arrow
    Shoot=Right arrow

    Walking right(I'm pressing C and shooting with Right arrow.
    Walking left (I'm pressing Z LOL but I can't shoot, because I can't find a way to shoot with the right arrow when walking left. Since it's been set to shoot right when walking to the right.

    LOL quantumsheep you said tap,,,, you know we can't tap yet. But if we had the View app then yes,, that would be the story =D
  • butterbeanbutterbean Posts: 4,315Member, PRO
    Yes, I would love to get my hands on that view app right now! :) As for now, I'm programming keyboard controls for all my games

    Good point Quantum, I hadn't thought of doing the controls that way, but I think I'm going to keep it simple, shooting left, shooting right, and shooting up

    I was thinking of that old arcade game magic sword, and I think those characters could only shoot left and right, and it worked quite well
This discussion has been closed.