dop2000's Forum Posts

  • Sorry, I can't help. There is nothing in the code that can cause these lags.

  • I definitely don't have this issue on my laptop. Can you try running on a different device (phone, tablet)?

  • Why do you need two events "hitBoxEnemy on collision with mainCharacter"? Because the second one is a sub-event, it may trigger at a different time and cause some unexpected issues.

    Try combining both events into a singe one. I'm not sure if this will fix the problem with the animation, but at least you'll have an optimized easy-to-read code.

  • Never use "Trigger once" with objects that have multiple instances, like enemies in your case. It will always work incorrectly and cause bugs.

    I suggest that you check for Health<=0 in a sub-event under the event where you deal damage to the enemy. Instead of "Is overlapping + Trigger once" do this:

    Bullet On Collision with Enemy
    .......Bullet destroy
    .......Enemy subtract 2 from health
    
    .......Enemy Compare variable health<=0 
    ................... (all the actions to kill the enemy here)
    
  • Hi,

    I'm not sure what you mean. I tested it just now and didn't notice any lag.

  • I told you in another post - stealing has nothing to do with the issue.

    The problem is with LOS behavior, for some reason if you step into guards cone of view, after that it will always have LOS to the player.

    Try removing actions where you add MrSpy sprite as an obstacle for guards. If you want LOS to detect the player, you should not set it as an obstacle!

  • I'm not sure. If I have several behaviors added to a sprite, I would prefer seeing triggers and conditions for each behavior in one group, and separated from other behaviors.

  • Yeah, it's one of the greatest additions to C3. I found myself using hierarchies for everything now! Linking opacity and other properties between objects would increase its usefulness even more.

    • Post link icon

    Your project is made in Construct 3, this is Constuct 2 sub-forum.

    Ashley will not investigate this unless you make a small project to replicate the issue and log a proper bug report. Also, I am not certain that this is a bug, maybe there is something wrong with your other events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Post link icon

    Actually, you don't even have to steal anything. If you step into guard's cone of view and then run away, it will continue to have LOS to the player, no matter where it is.

    • Post link icon

    You should've posted this in C3 forum.

    I think the issue is with LOS - if you add debug actions to these events, you'll see that after you steal the documents from the guard #1, the guard #0 will always have LOS to player, even when it's facing the other way. I don't know why this happens, may be a bug with LOS behavior..

  • Did you export this zip file from Construct 2? Is there index.html file in it?

  • You need to show your code, otherwise it's guesswork.

  • For "x" from (Array.width-1) to 0 works just fine. I often process arrays backwards when I need to delete selected records.

  • You can use "System Create by name" event. If you need to perform any actions with the created sprite, you need to add all these sprites to a family and use "Pick last created" condition.