0 Favourites

Attack fires only once

  • hi guys, one more question that I can't seem to figure out. THe following two pictures show part of my working code. The problem I'm having is I can only fire at the same 8 direction angle once, before switching to a different angle. Like here if I left click while pointing west it works fine but I cannot left click again facing west unless I left click from say northwest first. Any help would be greatly appreciated. I want to be able to fire from the same angle once.

    <img src="https://dl.dropbox.com/u/77974757/Capture4.PNG" border="0" />

    <img src="https://dl.dropbox.com/u/77974757/Capture5.PNG" border="0" />

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I believe you don't display enough code for us to give an answer.

    Also your logic seems pretty strange, you activate a group (Attacking) but don't deactivate it, you use a trigger sub event (On animation finished) to a condition that is checked every tick the group is activated.

    You could put a single event "On animation "AttackWest" finished" as sub event to the "Attacking" group since whatever the angle is you perform the same actions.

    Not sure it will resolve your issue though, but I guess it makes the code more logical.

  • Here's my capx kyatric. I know it's a little messy but I'm hoping you will be able to see my thought process a little better. I plan on cleaning up the code after I get this movement figured out.

    capx

    Note it requires my updated facebook plugin. I had added a couple of items to the builtin facebook plugin to gather some additional info. Here's the plugin.

    Myfacebook

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)