lionz's Forum Posts

  • Were you using Construct 2 last time? Construct 3 you have to create the function - click add on the event sheet actions.

  • What's the bug? That it doesn't seem to save and loads default data? Because you have two on start of layout event it might load the local storage data into Dictionary then overwrite it with Dictionary.json, the second event.

    Maybe you should be requesting Dictionary.json only if local storage item is missing, not on start of layout. Item missing means player never saved so load default json, item exists means player saved so load local storage.

  • You are creating 3 objects on top of each other at the same co-ordinates, you can check in debug view there will probably be 3 instances of the sprite.

  • Unless it is a trigger event, the event will run constantly (every tick), this is the case with loops. You can add a trigger once condition to the loop to make it run once, or trigger one time by some other method, for example if you added those loops as a sub event to the top condition 'on start of layout' they would only run once.

  • If it's a small number of instances and a one time thing you could use global variables, then the condition becomes if GV2,GV4,GV6 is true and GV1,GV3,GV5 is false. If the plan is to change the pattern all the time then developing a method with an array and slotting in a number pattern seems like the best way.

  • Same condition for the key press, the action depends how you are moving.

  • I checked the file and it's what I mentioned yeah your event runs constantly, so will the audio. You need a trigger event something like enemy on collision with player. It's up to you when you want to play the sound, but at the moment 'is attack' runs all the time, so will the sounds.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So there is a condition at 105 that enemy has LOS in that event which you've decided to cut off in the screenshot?

  • Yes no problem. The angle is not a problem, 360 just means a circle around the enemy. The problem is the tilemap is being detected as an obstacle for line of sight.

  • First part is duplicate post I resolved on the other post. Second part usually the sprite is holding the spear as part of the animation, then you have a separate throwing animation. The spear could then be a projectile that spawns from the enemy.

  • You'll have to create the events 'on key pressed' condition with action 'simulate control' on platform behaviour for example if it's a platformer.

  • Returning to your original question and the design, you want it to create just 2 beams only. The question is when? Right now you create it constantly, when do you want it to spawn the beams? If for example it's every 2 seconds then you can add a condition every 2 seconds.

  • It's because you have Solid obstacles and there is a tilemap covering the layout that is set to Solid, it interferes with the line of sight. You can change obstacles to 'Custom' on the line of sight behaviour

  • Using a boolean in place of a trigger once condition does not resolve the problem, the issue is that you are trying to trigger once inside a loop that is running every tick. The fix is to split it into two events because one needs to run every tick and one doesn't. But again this is just repeating my last post.

  • Has it been resolved? I can only take a guess because I can't see the project.