lionz's Forum Posts

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

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

  • So is it fixed now? I created my own APK and it was fine then I created an APK using your events and it was also fine.

  • Looks fine to me. Not sure what you meant by 'Just the image or the url goes'. Maybe your device isn't set to support sharing.

  • These features obviously work though, the problem is on your side. Check if you have events for destroying the instances and spawning them again on start of layout or something similar, this would override anything to do with Persist.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So what's the issue and how far did you get with experimenting with different blocks?

  • Don't use both of those things at the same time. You need to decide if it's an object that remains in the previous layout (Persist) or an object that follows you through the layouts (Global)

  • Put Scroll To behaviour on an invisible sprite, this will act like a camera. Then have the sprite slowly move to the right with events such as set sprite x to self.x+value or something similar.

  • You just need the condition I mentioned trigger is used=false so it only picks from ones that are not used yet.