R0J0hound's Recent Forum Activity

  • For #1 are triggering a floodfill when just hitting a ceiling. It doesn't look like it is.

    For #2 I've noticed the snapping doesn't seem right at times. The equations I used do what they were designed to do: find which square on a staggered grid to snap to.

    I did a test to evaluate the equation.

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

    The formula is about the same as in the bubble shooter capx I've made before. I also compared it to just picking the nearest grid sprite which would be perfect minus the need all the sprites. Anyway there are subtle differences in the gaps. My conclusion is a new formula needs to be found so that snapping isn't done to the nearest square but the nearest hexagon, which would mirror using picking nearest.

    A internet search for "snap to hex grid" would probably be the next step.

    After that the issue of snapping into walls or other jewels may still be there and require another solution.

  • As a note you get the speed from velocityX and velocityY with this calculation:

    speed = distance(0,0,velocityX,velocityY)

    or

    speed = sqrt(velocityX^2 + velocityY^2)

    which is the same, just whatever you prefer.

  • Another idea could be to use the function object.

    global number cur = -1

    On function "next"

    --- set cur to (cur+1)%Function.ParamCount

    --- set return value to Function.Param(cur)

    On any click

    --- Set text to Function.call("next", "apples","oranges","bananas")

  • cool

  • This works

    (time<5 | time>10)?"not now":"now"[/code:gn5necf3]
  • I'd have to see a capx as I don't know from your description.

  • Yes hard. You could use the multiplayer chat example as a base, or use the peerjs third party plugin. Both have the side effect of needing access to the internet to at least get going.

    Or maybe very easy. You could use the clipboard as the way to send messages. Just set the clipboard in one app and periodically check in the other app. Although it could be annoying to the user with the clipboard contents being changed. You could also do it be reading and writing to a certain file.

  • [quote:3s96hura]Also, is there going to be rotation?

    It already has rotation. Objects rotate on collision and there are actions to set angular velocity and torque. Unless you mean something else?

  • Joannesalfa

    For that one remove the "mark neighbors" call in event 5 and add another event right below:

    tile y=32:

    ---- tile set marked to true

  • I apologize I looked at it again and I misspoke, it should have been event 12.

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

  • Try Construct 3

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

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

    Can you provide more details or a capx where it occurs? I don't get an error when using two sprites. Although tiledBg does seem to have an issue when the hotspot is top-left.

    I've been on a break from coding for a bit, but I should be resuming soon.

  • In the example i did before its just another floodfill. It's started by picking the top row gems, then a flood fill is done and anything that's not picked is not connected.