R0J0hound's Recent Forum Activity

  • Odin

    Only the part of the tilemap that is onscreen will paste, and since the player is offscreen nothing is drawn. That is done by C2 by design and under normal circumstances it reduces the render load. It isn't ideal for the paster plugin though. I found a workaround that involves leaving the paster object on screen and instead move the tilemap object.

    Such a workaround should probably be built in but I've lost interest in working on plugins unfortunately.

  • Zebbi

    I haven't used the raycast plugin so I don't know if there's anything amiss. Picking the newest uid should work but I guess it depends on how you do it.

  • If it's any consolation I don't understand how it works either. It was pulled from a stackoverflow solution where someone else came up with it. I probably should dissect it sometime to understand how it works. Anyways I'm glad it helps.

  • You could try this:

  • repeat tockencount(text1, newline) times

    system compare: tockenat(text1, loopindex, newline) = textbox.text

    --- set text2 to loopindex

    --- stop loop

  • justifun

    You could just calculate the control points automatically.

    Here's an example of an expirement with that

    https://www.dropbox.com/s/gzu9sb0xd9y1s ... .capx?dl=0

  • "Universal gravitation" is the formula you'd want to look at to do the gravity force between two objects.

    Force = G*mass1*mass2/distance^2

    That's the magnitude of the force, the direction is toward each other.

    Now an object will orbit another if it's velocity is perpendicular to the direction of the other object and it's speed is sqrt(massOther/distance).

    Here's my test of it:

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

    Now I haven't played solar but considering a good orbit just doesn't happen then I suspect that some additional force is used to steer the smaller objects to get in a good orbit.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are two places that function is called

    Events 329 to 332 for the first screw

    and events 318 to 321 for the following screws.

    It can be obseved that no function call works in events 329 to 332. Explination? The function object isn't picked, and the cause is the "or" event on line 323.

    Comment and link to new bug:

  • —

    The or event on line 323 is unpicking the function object so no function calls will work. The fix is to instead of using the parameter compare condition, use the system compare function.parameter(2)=0.

    New bug:

  • Problem Description

    Function object can be unpicked by "or" event.

    Attach a Capx

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

    Description of Capx

    Under an "or" event that compares 0=0 or function:param 0=0, it sets the text to "didn't run function" and then calls a function. The function should immediately set the text to "ran function".

    Steps to Reproduce Bug

    • Create an or "event" with a system compare and a function param compare
    • Add a function call action, as well as some other actions.

    Observed Result

    The text displays "didn't run function".

    Expected Result

    That the text display "ran function".

    It seems the function object is getting filtered. I would expect that single instance plugins would not be picked/unpicked.

    Affected Browsers

    • Chrome: YES
    • FireFox: Untested
    • Internet Explorer: Untested

    Operating System and Service Pack

    Windows 10 x64

    Construct 2 Version ID

    r240

    • Post link icon

    If you have a capx that uses a plugin that you bought previously but no longer have, couldn't you ask the seller to send you another copy instead of buying it again? Otherwise you couldn't you also edit the xml files of your project and remove all references of that plugin?

  • round(X/32)*32