lionz's Recent Forum Activity

  • This is a common issue, it is because the walk or idle animations override the attack. So if you are moving or not, it will always try to play walk/idle even if you shoot. The way to fix is to add more conditions such as 'attack animation is not playing' under walk anims. Problem is you have many different anims so a variable might work here. When you want to attack set an instance variable for attack to 1 and then back to 0 when the attack is over, then with your moving/walking animations add condition variable for attack equal to 0.

  • Check in the debug view to see what value the variable has. It has possibly gone wrong because you are loading a save game after you click the button it's a little strange the logic.

  • OK here

  • In every X seconds where you write a number instead write the name of the variable. You didn't use a global so it will be dragon.seconds

  • Well you are loading a game after setting the variable so that can't be good. Also the event for the shooting should be every <seconds variable> seconds, use the variable and it is one event. The reason it's not shooting is because you're loading a game where the variable is set to 0 most probably. Or maybe you meant to save the game instead of load it ?

  • The post is kinda vague with no information but you could try adding a 'for each enemy' condition and see if it is handled better.

  • An example won't help here as I already described it and it is a single event. Let's see a screenshot of what you did and what is not working.

  • My priority would be on making it not crash and lower the memory usage rather than trying to work out what it will do when it crashes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok you meant click menu that makes more sense. So you just need an event that dragon fires every <variable> seconds, just this one its own, and when you click easy SET the variable to 3 like I mentioned above. Also use a global variable for firerate.

    So you have every <variable> seconds : spawn fireball, that's the event.

  • It's unclear what you are trying to do with both on clicked and every X seconds at the same time. I thought your issue was modifying the number of seconds. What do you mean by on click and every X seconds ? Do you mean while mouse button is being held down then every X seconds it should fire ? When you click the mouse it should toggle on firing mode for the dragon until you click again ?

    Note in general you can't use them both together regardless of what you are trying to do because on clicked is a trigger once event so the every X seconds will not keep running constantly inside it. So really depends what you are tryin to achieve with the gameplay.

  • You probably answered your own question, sounds like the app crashed so nothing was saved.

  • You can use every X seconds where X is a variable equal to 3, 2 or 1 depending on difficulty. So if user starts the normal game, set the variable to 2. Automatically the event will be every 2 seconds.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 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