lionz's Recent Forum Activity

  • You would need to set armor to armor+items.armor, since the event is constantly running. Or you can make it a trigger once style event for example 'on drop item' you can put all that logic in a function and run it once.

  • I put in a fix where you store the last move angle in a variable

    dropbox.com/s/55w1caq38ablbc5/8direction%20ninja.c3p

  • I don't see an issue with 315, all angles look good? The issue with the throw while idle is because you're using angle of motion to set the animation and when you are idle it's always 0. I'll take a look at a fix though.

  • Spawn it at object.x,object.y-32

  • I can take a look sure link it. If it's a large project trim it down where possible as I didn't buy C3 recently.

  • I was wrong. If I'm standing still the animation won't trigger back from throw animation to the regular animation. I can only throw when I'm moving and the animation will trigger back and forth (except for the 315 angle).

    There has to be some way to make it all work. I can't imagine construct not being able to do the 8 directional movement and trigger a "throwing" animation and can switch back and forth along with idle throwing animation. I'll keep trying and then I'll post it here for others to use.

    Thanks.

    First problem you describe is because from what I can see you have no logic for idle. If you throw it sets to throw, but then you have to actually move to set any other animations, or press the throw button. Maybe remove the 8 direction is moving condition from the top? If it's the same animation. If you have a separate 8 idle animations then you need more logic.

    For the 315 angle try browser logging there's a chance it's using a value like -45 for angle which won't match with anything.

  • That is strange I guess if the running works and the idle throwing works which means the correct animation is playing. Use browser logging to debug the angle values and see if they are expected.

  • Ah ok I've got it, untick 'Set Angle' on the bullet behaviour

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There won't be much info on this because it's not common to have 8 animations even if the character moves diagonally. Also it's possible the object's angle doesn't change so you should check this, 8 direction movement angle and the player object's angle are two different things.

    Also the screenshot you shared, that can still conflict with the event for A is down or W is down, they can both be true. You would probably have to add angle conditions to the basic 4 direction movement events as well. For example if you press A it tries to play 180 and this is true even if you press A and W at the same time so it tries to play 2 animations, 180 and the one from the screenshot.

  • You can use conditions based on the player's angle I guess. See what property changes. Or another option is something with key + key is down

  • Get rid of the first event...the third one is now the run event.

  • There is an action 'Spawn object'. If the problem is specifically with spawning on top there is something called Z order, you can set the spawned instance to the top of layer.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 72 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies