soren's Forum Posts

  • Well, it sounds like the problem is how you have set up your events but without a .capx or a screenshot of your events it's hard to tell. :-)

  • Link to .capx file:

    https://dl.dropboxusercontent.com/u/2014107/LOS_Problem.capx

    Steps to reproduce:

    Use arrows to move the green player.

    Observed result:

    If you move so the larger red enemy has a line of sight to the player, it will move towards the player.

    But if you move so only the smaller enemy has a line of sight to the player, it wont move until also the larger enemy has line of sight to the player.

    Expected result:

    The small enemy should move towards the player even if the large enemy doesn't have a line of sight to player.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Up to date Windows 7

    Construct 2 version:

    r136

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm having trouble picking objects that are not in line of sight by using the new Line Of Sight condition and inverting it. Nothing seems to get picked. Is this a bug or just not possible?

    You can try it in the example that comes with r134. Just invert the line of sight condition there, and no piggies get highlighted.

  • "Pick all Ship" is probably a stupid suggestion. :-p

    Maybe making r an instance variable of ship and check if the Ship's r variable is set to 1 would then pick the ship.

  • So after reading the thread ramones posted I guess it works as designed. My bad. :-/

    I guess if I add an "Pick all Ship" condition it would work.

  • Link to capx file.

    <img src="https://dl.dropboxusercontent.com/u/2014107/screenshot50.jpg" border="0">

    Steps to reproduce:

    1. Run the test

    2. Move the mouse around

    Observed result:

    When the sprite is rotated beyond 90 degrees from 0 it stops rotating

    Expected result:

    It should keep rotating since r=1

    If you disable the event with the angle check and enable the one with mouse button check it works as expected.

    I had the same problem if I used the "Is within angles" condition.

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Windows 7

    Construct 2 version:

    r129

  • Maybe do the fading manually instead of using the Fade behavior?

  • Ashley, but 'is clockwise' is only for the object's angle, right? There's no equivalent for Bullet.AngleOfMotion, is there?

  • Yes, I understand that. But if you want to check if AngleOfMotion > 270 you have to check if AngleOfMotion is > -90. That's not a problem in itself unless it's not mentioned anywhere that AngleOfMotion is a value between -180 and 180.. :-)

  • Hi,

    Is Sprite.Bullet.AngleOfMotion supposed to return a number between -180 and 180?

    Sprite.Angle returns a number between 0 and 360.

    I just think it's a bit confusing, I kinda expected it to return a value between 0 and 360. If it is supposed to do this then please mention it in the manual. :)

    Example capx

  • Sampling is set to Linear and Pixel Rounding is off.

    Here's a .capx example. (r102)

    I'm running this on a half year old laptop with Win7, Geforce GTX560M graphics card with latest drivers.

  • I'm pretty sure it wasn't but I'll check tomorrow.

  • Hey, is this a limitation or bug in the way fonts are drawn when WebGL is enabled?

    Text with WebGL disabled in Firefox:

    <img src="https://dl.dropbox.com/u/2014107/screenshot16.jpg" border="0" />

    Text with WebGL enabled in Firefox:

    <img src="https://dl.dropbox.com/u/2014107/screenshot17.jpg" border="0" />

    It's like there's no antialiasing when WebGL is enabled.

    This is with r101. Same thing happens in Chrome.

  • So I tried disabling WebGL and then it worked fine in Firefox and Chrome too. :-/

  • There something strange going on with either Cursor is over condition or Set font color action. This example works fine in Internet Explorer 9 but in Chrome and Firefox the text is stuck on green.

    https://dl.dropbox.com/u/2014107/CursorIsOverBug.capx

    <img src="https://dl.dropbox.com/u/2014107/screenshot14.jpg" border="0">

    This works fine in r99 but not in r100 and r101.