R0J0hound's Recent Forum Activity

  • So I suppose it will have to wait till Tom gets back to resolve the issue.

    In the mean time shall we name our new spam buddy? I vote for something simple like Carl. All in favor?

    When the scirra office closes for the day the forum should change to a darker appearance with the message

    "What a horrible night to have a curse..."

    Bonus if they can get this music playing in the background.

    https://m.youtube.com/watch?v=7tNQXwjAlI0

  • Assuming in your array you use:

    0 for air

    1 for dirt

    2 for stone

    You could do the following as sub-events to a start of layout to populate the array:

    for "y" from 0 to 32

    for "x" from 0 to array.width-1

    --- set array at (loopindex("x"), loopindex("y")) to 0

    for "y" from 33 to 64

    for "x" from 0 to array.width-1

    --- set array at (loopindex("x"), loopindex("y")) to 1

    for "y" from 65 to 80

    for "x" from 0 to array.width-1

    --- set array at (loopindex("x"), loopindex("y")) to choose(1,2)

    I don't know how you're placing the tiles so you can see them but the usual way would be to loop over the array and create the correct tile based on the value in the array. Say your tile size is 32x32 you'd create the tile with something like "create dirt at (array.curx*32, array.cury*32)".

    It will be slow if you use a sprite per tile so a better way would be to use the tilemap object instead and set the tiles from the array.

    For hills and whatnot this post could be helpful, it also shows the use of the third party noise plugin:

    1.

    It all depends on how you're doing the trees, like will they be blocky or sprites. Either way you could loop over the surface tiles and occasionally grow a tree. One way would be to spawn random seeds in the air, let them fall and have them grow where they hit.

    2.

    For that perlin noise could be useful. Or you could use some oddly shaped and randomly placed sprites during the generate stage, and set all the tiles it overlaps to ore or something.

    3.

    The tilemap object will be your biggest friend for this as it's very efficient at drawing only what's on the screen regardless of how big the world is.

    4.

    I don't know of any off hand but I know there are lots of tutorials and examples to study. Do a search, I'm pretty sure there are examples that do as you describe.

    5.

    There are many ways to do it, but your idea and the approach you used in gm will most likely work here.

    As for 5 minute loading, I haven't ever encountered such a delay. If use a massive array it could take some time to loop over to generate, but otherwise I have no idea.

  • striimix

    Sorry I haven't had a chance to look yet. I've been in a programming slump.

    GameThirsty

    It doesn't really play well with other behaviors. To make it respond realisticly you need to move the object with only the chipmunk behavior.

  • Here's a recent tutorial with a possible solution.

    https://www.scirra.com/tutorials/1447/u ... tial-games

  • eli0s

    This post is relevant:

    Basically it's because the quads can't be drawn with perspective since there's no real z.

  • One possible way to do a serial could be the following:

    So say you want the serial to be in the format of

    aaaa-bbbb-cccc-dddd

    1234-4567-8901-2345

    You can then let it be a good serial if

    a+2*b+3*c+5*d is in the range of (55000 to 55005) or something.

    To generate them you could do something like the following which should give you a few good serials.

    repeat 100000 times

    --- set a to int(random(10000))

    --- set b to int(random(10000))

    --- set c to int(random(10000))

    --- set d to int(random(10000))

    ------ a+b*2+c*3+d*5 is in the range (55000 to 55005)

    --------- save as valid serial.

  • Hi, would you consider making a plugin or behaviour out of your 3d object engine, please?

    Probably not. That would mean re-writing it in javascript which doesn't appeal to me.

  • WebMagi

    It's just a matter of using joints to link it together. Then to manipulate it with just physics you can use a dummy object that's moved by the mouse that you connect and disconnect from objects. Here's an example of a possible way to set it up.

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

  • WebMagi

    I can't think of any examples off hand, but a search for "angry birds" on the forum will give examples of a slingshot which is similar.

  • Try Construct 3

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

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

    Haven't started working on it yet.

    WebMagi

    This behavior would be useful for the simulation part of what you're doing. Adding the joints should be as easy as using one of the add joint actions and specifying the two objects and stuff like where the joint should be.

    To make the object manipulable with the mouse you can use something like the drag n drop behavior as a base. To move other objects when dragging one you would need to move them by the same amount, the pin behavior could be used for it.

  • Works now.

  • You do not have permission to view this post