newt's Forum Posts

  • You reeealy should check out the Perlin plug. With it you wouldn't have to check nearest neighbor, since the random data generated ensures that cells at a certain height will be surrounded.

    All you would need to check is if it is at sea level or not.

  • Ok one thing is you were checking x,and y coords, but you need to check the value at x,y,and z.

    As well as set the value at x,y,and z.

    Also your using an older version this cap wont work for you.

    http://dl.dropbox.com/u/666516/brbarray.cap

    Sorry Im using the latest unstable, but here's the code if you don't want to download.

    btw the value's in the array are set to zero by default(if you didn't already know that).

    + System: Start of layout
    -> Array: Clear array with 0
    -+ System: Repeat 5 times
    + System: Repeat 5 times
    --> Array: Set index (random(5)+1, random(5)+1, 1) to 1
    --+ System: For "x" from 1 to 10
    ---+ System: For "y" from 1 to 10
    ----+ Array: Value at (LoopIndex("x"), LoopIndex("y"), 1) Equal to 1
    ------> System: Create object Sprite on layer 1 at (LoopIndex("x")*10-5, LoopIndex("y")*10-5)
    ----+ Array: Value at (LoopIndex("x"), LoopIndex("y"), 2) Equal to 0
    ------> System: Create object Sprite3 on layer 1 at (LoopIndex("x")*10-5, LoopIndex("y")*10-5)[/code:y28wftyl]
  • It's the "For each element". For each cycles each z each pass, so basically its running z2 twice.

    Better to do a regular loop here.

  • For a map like that the simplest way would be to have the z set to 5.

    The first slot for land or water. That could be set as either a negative or positive number. 1, and greater equals land, less than 1 equals water.

    The other 4 slots would be for if it has a tile next to it. Basically the cell at x1,y1, z2 would be the x,y coord subtracting 1 from the current x. Then x1,y1,z3 would be the current y minus 1. Z4 would be current x + 1... etc. And you would just set the value to a 1 or 0 for if something is there or not.

    You could even simplify that to have just two z slots by using a counting system.

    Example:

    (x1,y1,z2)'s value might be 1 meaning that there is only one tile next to it, and its position is current x minus 1, or to the left.

    (x1,y1,z2)'s value might be 2 meaning that there is only one tile next to it, but its on top.

    Basically you just add 1 going around the tile... ehh its simplified, and yet more complicated. Especially when you start having to take into account the fact that the array object is not zero based.

  • Cool. Think I'll do a prequel of Duke Nukem 3d..... oh wait.

  • Wouldn't the array object solve this by using a z?

    For example you could set your 5x5 array with 4 different numbers by setting the array to 5x, 5y, 4z.

    You would then have 4 slots to store info at all 25 locations.

    It's pretty much like the Perlin plug actually, cept the plug generates a random number for you.

    + System: 2=2
    -> Array: Set index (1, 1, 1) to 2[/code:3w0x4jck]
  • Have you tried families yet?

  • I would but most of what I saw was pretty lame, and they wont let you make your own "inspiration" artwork.

    Edit:

    See what I mean

    I made this:

    <img src="http://dl.dropbox.com/u/666516/dong.png">

    For this game:

    http://gamejolt.com/freeware/games/arcade/dong/2724/

    But I cant enter it because I made the art work...

    sux

  • Yeah, I'm kinda curious as to how may polygons we can expect to get.

    Plus are we going to have to dig out the uv-unwrapper, or (yeah I know its silly to even suggest it) does it use colorfilters as materials.

  • Yeah if you can replicate the bug, I would defiantly add it to the tracker.

  • I don't think there have been any issues with pasting, in fact for what it does its pretty freakin fast.

    The only real issues are the draw functions, and updating the collision mask, and those are probably related to the bug with dimensions. Oh and the fact it has to be on screen.

  • The Wait Object is unfinished, so at this point I think its safe to say it should just be used for testing purposes. I hope you can track down the bug, as the plug is another one of those must haves for 1.0 imho.

  • The Custom Movement Behavior has a function called slide, or push out.

    That will work if the object is always moving toward the platform.

  • If you have Audacity or some sound editor you could just put both mp3's into one file.

  • Try Construct 3

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

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

    Forums kinda slow atm, but on the bright side it looks like Davids back as well.