FMistakes's Recent Forum Activity

  • zenox98 thank you so much, it works perfectly :)

  • I know, it's ugly, but still pretty usable. I've tried to make it like in

    Subscribe to Construct videos now

    but there is some troubles (Scirra doesn't have "other" description for objects.)

    Well, it works, but maybe you can find more efficient solution then my? :)

    capx

  • 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

  • Try Construct 3

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

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

  • There is no difference between left and right shift or ctrl with default keyboard plugin.

FMistakes's avatar

FMistakes

Member since 28 Jul, 2013

None one is following FMistakes yet!

Trophy Case

  • 11-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies