R0J0hound's Forum Posts

  • You need to add the sine behavior to that object first.

  • Yura G

    Look at the system action "set minimum framerate". It's by default 30, so that would explain those dt values. I had forgotten about that.

  • The newly created objects are not pickable outside of sub-events till the next toplevel event.

    More info here:

  • Yura G

    I was thinking about this and it is because the browser is synchronizing with the refresh rate almost perfectly. That gives smooth animation and motion.

    I don't think wallclocktime would help in this situation. What you can do is compare the time elapsed with the number of frames to get the current average fps. Actually fps is just frames/seconds, so you could add up the dt for the last 10 frames and do 10/sum_dt to get a per tick fps.

    https://dl.dropboxusercontent.com/u/542 ... e_fps.capx

  • briggybros

    I guess that means you can't access those other buttons from javascript at this time. The spec as you linked mentions it as a possible feature, but I guess none of the browsers check more than the first three.

  • Sounds like a bug to report. It shouldn't crash.

  • If some javascript takes too long to run the browser will give you an option to stop it. As long as it wasn't an infinite loop in your code causing it you can let it continue an it will complete. AKA it wasn't a crash.

    That said, saving a tilemap of that size may be the reason it takes so long.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ayeletpn

    There's the "line dash setting" action.

  • You can reduce the amount to compare somehow. Only sprites on screen would be one example. Another would be only objects overlapping the player or enemies.

  • Instead of using push, you could just set the size of the array to be bigger and set the value like your last post.

  • There isn't a plugin for it. You'll have to probably find a JavaScript library that does it or something.

  • Yes, lots. A search for laser will give a lot of examples.

    Here's a recent one I did:

  • Waltuo

    Use the "begin path" action to not use any previous paths with the draw path action.

    Ex:

    move to (0,0)

    line to (10,10)

    draw path "black" 1.0

    begin path

    line to (20,20)

    draw path "blue" 2.0

  • I'm guessing the browsers themselves aren't checking those other buttons perhaps, the spec seems to allow it though. More than three buttons is non-standard so it's probably something more complicated like gamepads, but there doesn't seem to be any other way to access the mouse from js.

    I don't see any issue with giving beginners something new to learn, and in this case it's just a matter of using it like the example provided.

  • There are array editors, drawing programs, and some music players to name a few. The only complicated thing with your idea is recognizing the beer by a taking a picture of it's label. Even if you were just coding it with a typed language it's something you'd want to find some existing library to do for you.