R0J0hound's Recent Forum Activity

  • Basically this?

    function hex2dec(hex)
     — var num=0
     — repeat len(hex) times
     — — num = num*16+max(0, find(“0123456789abcdef”, mid(hex,loopindex,1))
    — return num

    Btw your example is odd to me. W isn’t a hex digit.

  • Some tests of different physics integration methods with different timesteps. I included the platform behavior too to compare, but it just uses whatever dt currently is. It draws a nice graph to compare time vs y. The speed of the jump has to do with the timestep used, so it can be ignored.

    https://www.dropbox.com/scl/fi/sluu3khqb1b0vzw5de0lu/integrationTests.capx?rlkey=0jjkfkcaww1evb03bs4fj9mpu&dl=0

    The results show that leapfrog, velocity verlet, and the platform behavior in c3 all have matching curves.

    You could do similar tests for the 8dir behavior vs an event based one.

  • It’s on Wikipedia.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The verlet you’re thinking of is slightly different. It infers velocity from position change which does work well for ropes and cloth.

    Anyways it’s something you can test either way.

  • Your math is off I think. Should be:

    (ScreenWidth-windowWidth)/2

    But You’re doing:

    (ScreenWidth-windowWidth/2)

  • Looks like that method is called leapfrog integration. It averages out changes to acceleration from frame to frame.

    Most behaviors use velocity verlet integration. Which handles constant acceleration motion perfectly no matter the timestep.

    When acceleration changes from frame to frame I don’t think there’s a silver bullet integration method to make it frame rate independent.

  • You mean something like this?

    Repeat 4 times

    — dx= round(cos(loopindex*90))

    — dy= round(sin(loopindex*90))

  • One way would be to only change the variable with a function or custom action. So when you call that you’d know the variable is getting changed.

  • Functions in c3 have a fixed number of Params so param count doesn’t exist.

    One solution is to just use the old function object instead of the new built in ones. Just find an old project with the function object and copy it over.

    Another is to just make it with the new functions. Add the function, give it two parameters, and replace function.param(0) and function.param(1) with the parameter names instead. And instead of using function.paramcout use 2, since there are just two parameters. You can then simplify from there if you like.

  • It depends on the event. Generally you can’t have a trigger as a sub event of a trigger. You can have a trigger of normal filtering events. But it looks backwards, and actually it works as if the trigger came first and then the filter.

    Anyways it makes sense to have the triggers first and other stuff under it. Guess it depends on what event you’re wanting to put the key trigger under.

  • I don’t think it’s something you can get. They do porting and they have their own internal tools to help with that but it’s never been publicly available. You could try one of the other porting houses if this one hasn’t gotten back to you yet. From what I gather chowden probably hasn’t scaled up as a company to do too many ports at once or handle all the requests even, but that’s mostly speculation.

  • Worst case if Scirra or webview2 don’t get around to adding that then someone could use the c++ sdk to do it. It’s only a few winapi calls: one to get the window handle and one to set the size or position. I think someone already used that sdk on discord so maybe they could help.