FMistakes's Forum Posts

  • But any other event doesn't work without "round" condition if it's based on 90.0 degree movement after bouncing.

    For example, a camera in my game depends on ball's angle of movement, and I've spent some time to find this problem.

  • Link to .capx file (required!):

    docs.google.com/file/d/0B7p49JKt0CGLcXJ2c09UdkRjSGs/edit

    Steps to reproduce:

    1. Run project

    2. You can add "round" condition in the second event to solve the problem

    round(Ball.Bullet.AngleOfMotion)

    Observed result:

    After bouncing angle of movement is -90.00000000000003

    (thanks to the new debugger, text plugin shows that it's -90.0)

       

    Expected result:

    After bouncing angle of movement is -90

    Browsers affected:

    Firefox: yes

    Opera: yes

    Operating system & service pack:

    Vista sp2

    Construct 2 version:

    139 as well as 141

  • Thanks a lot

  • I've tried to make it, but there is 2 problems:

    1.I don't know how to get vectorX of a bullet.

    2. If you'll set Xmax and Xmin to 250 the camera will be more twitchy.

    Maybe someone know any better solution?

    docs.google.com/file/d/0B7p49JKt0CGLaXR6ME5xdjNRY2M/edit

  • Maybe so, but some of my friends have the same problem, and it's useful information if your games are commercial and users with the same keyboards will scream "OMG WTF I'VE BOUGHT THIS GAME, BUT SOMETIMES MY KEYBOARD DOESN'T DETECT THE KEYS " :D

  • I think, it would be nice to add to the FAQ, Manual or "Frequently asked questions topic" information about 2 important problems.

    I've tried to define controls for 2 players on 1 keyboard (it's very necessary feature for fighting or football game, or even TDS with split-screen), and found out that

    1) Construct can't differentiate from left and right shift (as well as from left and right ctrl) because of limitation of JavaScript. (Browsers also doesn't)

    2) Most of keyboards have troubles with detecting arrow-keys and numpad keys, pressed at the same time.

    (try to press up-arrow +left or rigt arrow+ num0, no effect).

    Maybe there is another unobvious problems :) Does anyone know about it?

  • After additional googling I found this:

    "With JavaScript you can only detect Shift. You can't differentiate left and right shift.

    The browser does not differentiate from left and right shift."

    Well, it's pretty bad for fighting or football games (not many people like to play on a single keyboard, but I know that I should make this feature).

    So, is there any other solution exept of writing a small program which starts with my game and defines left shift as f7 (for example) ?

  • Don't use "Mirrired" action :)

    Everything works fine if you make this:

    on left arrow pressed -> player set angle 180 degrees

    on right arrow pressed ->player set angle 0 degrees

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is no difference between left and right shift or ctrl with default keyboard plugin.

  • Oh my god, That's because I used the condition "when key is down" instead of "pressed". I'm so sorry :))

  • Well, here is another version. Just 3 objects,

    and 2 small changes (action by LeftClick and ignorance of user input instead of "8direction-movement" activation)

    Link

    docs.google.com/file/d/0B7p49JKt0CGLMm80X2N1NDgyTGc/edit

    Steps to reproduce:

    1. Click left mouse button to control nearest object

    Observed result:

    10% of clicks make no effect

    Expected result:

    100% of cliks make effect

  • Link to .capx file:

    docs.google.com/file/d/0B7p49JKt0CGLRnRiY0pJbndoSEE/edit

    Steps to reproduce:

    1. Run project

    2. Test "8direction-movement" behavior of object "P1P1" with arrow keys.

    3. Press "J" for switching to object P1P4

    (it is the nearest to object "Ball")

    4. Close project

    5. Disable toggle actions 23-25 to turn on switching from object "P1P4" to other nearest to "Ball" object.

    ==

    6. Add "Else" conditions to events 14,18,22

    Observed result:

    After pressing "J" once, object "P1P3" is active

    It's also impossible to set "P1P4" "8direction-movement" active.

    ==

    after step 6 everything works, but sometimes incorrectly

    Expected result:

    After pressing "J" once, object "P1P4" is active

    After pressing "J" once again, object "P1P3" is active

    ==

    after step 6 everything is fine

    Browsers affected:

    Firefox: yes

    Internet Explorer: yes

    Opera: yes

    Operating system & service pack:

    Windows Vista sp2

    Construct 2 version:

    R139 Free Edition