Sprite angle check and OR problem

0 favourites
  • 5 posts
From the Asset Store
3D Car Pack 1
$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
  • 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

  • This thread addresses your problem I think:

    http://www.scirra.com/forum/r91-or-block-and-picking_topic52579.html

  • i may be reading it wrong but the event will continue to run true as long as r=1 or the angle is within 0 and 90. but once both condition when you was making the ship's angle change. which made the angle go beyond 90 degrees and there's no event to handle when r=1 AND angle not within 90-0

    which reads like an XOR rather OR

    but then idk why the second one works even if r=1 and left click is down at the same time.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)