R0J0hound's Recent Forum Activity

  • Here's a one condition idea.

    system: pick by comparison: sprite find(",1,3,14,6,", ","&Sprite.uid&",") =/= -1

    It's a bit hard to read. Another idea is to use a boolean variable and a function:

    on function "pick by uids"

    --- sprite: set pick to false

    ------repeat function.parameterCount times

    ------sprite: pick by uid function.param(loopindex)

    ---------sprite: set pick to true

    Then you could do something like this:

    every tick

    --- call function "pick by uids" (2, 4, 6, 10)

    sprite: is pick

    --- do something

  • Correct. Also keep in mind that typically numbers in javascript (or construct) are 64bit floating point numbers, but whenever a bitwise operation in done on them they are cast to a 32bit integer. So the number range is −2,147,483,648 to 2,147,483,647

  • Follder22

    They do but only inside the object's quad. Right now it lets you draw anywhere so you'd have to make the quad bigger and be sure to draw only inside it.

  • This is generally how the bits are for negative integer numbers.

    https://en.m.wikipedia.org/wiki/Two%27s_complement

  • christina

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

    Here's that capx. I can't open capx at the moment so I can't say what's amiss. I'm pretty sure I didn't use for each xy though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Making a c3p to capx converter is more tedious and time consuming than hard. I wouldn't do it because the time to make and maintain it would be wasted. As c3 advances a converter could become too much to maintain, not to mention it wouldn't be as useful as the number of things it can't convert would increase.

    It's much simpler to just open c2 and c3 side by side and visually copy everything over.

  • You probably could use construct classic's canvas in the same way as the c2 paster plugin. Paste to canvas, and set canvas height to negative...

    Unfortunately I won't be able to provide an example.

  • The language is "Construct 2 events," and while it's true JavaScript and html5 are used when exporting your game that's not the launguage used. You could only include that too if you made a plugin or behavior that you used in your game.

  • Prominent

    It probably would I imagine. By default chipmunk uses a bounding box tree which seems to work well. That spacial hash in that link isn't implimented in the js library used.

    vikash2k2jsr

    There are some discussions about that elsewhere, but best as I understand you may be able to use the polygon plugin to create the arbitrary shape. I've never tried it so I could be mistaken.

  • justifun

    I don't have any plans to make it interactive, that would have to be done with events.

  • The positions are relative to the canvas' top left.

    So if you wanted to use a position on the layout you'd convert it with

    X-canvas.left

    Y-canvas.top

    For every position

  • SoldjahBoy

    Here's an example how to draw a filled polygon vs just a line. Hope it helps.

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