Vladimir's Forum Posts

  • Hi! I have the same problem. Nwjs is not closing and slowing my computer after launching several times if not to close it every time through CTR/ALT/DEL.

    Configuration of PC: Windows 10, Pentium E5200, 4000 RAM. I am using latest version of nwjs.

  • You can create instance variable that will hold current number, and if new random number will be the same you should run action with searching new random number again.

  • Your best bet is to use manual target acquisition. Here's your capx modified so your turret acquires the closest target in its line of sight.

    You are genius!

  • Here is capx: https://www.dropbox.com/s/8xa3g6gtc1cr3 ... emies.capx

    I do not have any idea how to make this workable )

  • I did something similar once. When my Turret acquired a target, I would check if there was also line-of-sight.. if yes, then I would fire a bullet using 'spawn sprite', not 'Turret:On Shoot'. I'm sure I had a reason for doing it that way.. but maybe you could just put a line-of-sight check in the On Shoot event.

    Thank you a lot, i will try both ways

  • Just add 'line of sight' behaviour as well as Turret.

    If turret see in line of sight several targets, and one of them is hiding behind the wall and is nearest to the turret, turret will still shoot at it. It will be good if turret in that case just switch to another target.

  • I have the same problem. Turret is trying to shoot to nearest target despite it is behind the wall. Maybe Scirra developers should add obstacles to behaviors of turret?

  • Create multiple conditions

    Sprite On Overlap > Wall_1 > Sprite > do something

    Sprite On Overlap > Wall_2 >

    Sprite On Overlap > Wall_1 > Sprite > do something else

    Sprite On Overlap (X) > Wall_2 >

    (X) being inverted

    Thank you!

  • Hello! For my game, i need to check appearance of walls near with my flying enemies, i had created detectors for them from both sides, but they do not want to work with several walls, only with one at a time.

    Here is capx, how to detect two sprites is overlapping two walls simultaneously?

    https://www.dropbox.com/s/57lmlixbrhxgo ... sions.capx

  • I shouldn't have used the word triggered; 'evaluated' might've been a better word. A non-triggered event is like an evaluation of an expression rather than, say, a mouse click 'triggering' an event.

    And again, thank you! It was very informative.

  • See attached capx. You're using an Else, so if the first condition is met (i.e. one or more sprites within 90deg of 0) then the second event is not triggered (no change of animation frame).

    Edit: minor wording, and modified a log statement in the capx

    Thank you very much! Is my problem was because of this description that i found in manual: " Else can only follow normal (non-triggered) events."? But i still don't understand what "non-triggered events" means quite well.

  • Hello!

    The actions is not only apply to the instances that met the conditions.

    I have problems with creating platformer game, my instances of enemies is react to events all together, but not only those who have conditions for that.

    Capx: https://www.dropbox.com/s/c8wo1f7nf7duh3z/turret.capx

    Here is capx were I want to make turrets green when mouse is located to the right of them and blue for the left location, but in reality they react as one single object. The middle turret is the most problematic.

    Drag mouse from right to left and you will see it.

    The middle turret is still green. But i want to change it's color.

    For one instance on layout it is works perfectly, and not for many.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    173 (64 bit)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The strategy of playing is to be very careful and shot to enemies from distance and from shelters. It is not like in Contra, were you jumping in crowd of enemies and come out a winner :)

  • Hello! This game is created for humorous contest announced here: youtube.com/watch

    Aim of contest is to create the most absurdest and stupidest game from China's developers.

    You can play it here: supraliminal.narod.ru/hren_20/index.html

    Super Termizillacopnukem Z: Ghosts X/Y

    Also i want to say big thanks to Scirra developers for Constract 2, this program is awesome!