lionz's Forum Posts

  • Set it so that on path found, move along path as standard. Then every X seconds find path to player, it should pick up the new location of the player at that point. I could do a simple capx with 2 events to show you that it 'should' work so something has gone wrong in your game logic. In what way is it not working? That'll be the key to finding out where the logic has gone wrong.

  • This can be easily resolved with a shared capx. Without it, just guesswork.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My head exploded. I will just say 'always families'...

  • Post a screenshot of the logic for the if variable / go to layout events.

  • Check out the localstorage tutorials. You save the variable to localstorage at the start of the intro or whenever it changes. When you load the game, you load that key from localstorage and it remembers it as 1, rather than the initial 0.

    https://www.scirra.com/tutorials/1461/h ... age-plugin

  • It looks like you know what you're doing so I can't determine where the problem is, unless you're talking about localstorage and saving this variable when you close the game?

  • Don't check if the array size is equal to 0 until you've started populating it.

  • What do you mean when you say it is working when browser is open? Doesn't sound like localstorage has worked at all here and you will need to double check your logic from the tutorial.

  • Well the variable will always be 0 on load, unless you're using localstorage to save and load it. If you're talking about within the same game, then returning to the main menu and comparing the variable should work and so there must be some broken logic somewhere.

  • Yeah I'm asking what your role is in the team.

  • Often people will use CSV format for this then use the CSV plugin to import the data into the game. Not got a lot of experience with using this method but there should be some info around. In terms of the array, you never need to set a specific size, you can 'push' items into an array at the back so in reality it has an unlimited size.

  • Around where the destroy action is, you can say something like object is overlapping spawner, set variable to false, then destroy object. So really you are checking that is IS overlapping the spawner to pick the appropriate spawner, setting the variable back, then destroying the object.

  • You're nearly there, you use Grow but set a negative value to shrink it.

  • What will you be doing on the game?

  • Post a screenshot of the event with mouse click or function, should work fine...