lionz's Forum Posts

  • It's the same as original issue, attack is always 0. You didn't set it to 1 when you attack.

  • You are hiding the events on the screenshot..

  • You could use 'spawner is off screen' then reset the spawning logic on it. I can't remember what happens in Mega Man.

  • The idle animation condition should be something like '8 direction is not moving + attack=0'. Also on the attack events you need actions to set the variable to 1 and then back to 0.

  • There is a condition under the spawner object 'pick nearest/furthest', you can use this to pick the furthest one away from the player.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.