newt's Forum Posts

  • Dwarf Fortress has seen year-long periods without major updates, it is buggy as hell etc., yet it is one of the best games you can get your "hairy hands"* on. Don't write Construct off either

    *:Required

    ^fixed

  • This is a way to get perlinish noise without the plug.

    Basically what its doing is creating a set of random values, and then averaging those values from one to the next.

    Keep in mind this is only across a single axis, and does not include negative values.

    But both should be possible though.

    It is set up for negatives if you wish to experiment, just use "normalrandom" instead of random.

    For a rougher range simply lower the amount of times the "Repeat" action is called.

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

  • No prob.

    Since your in a learning mood.....

    You can also take a "slice" of the noise, or get the data from a single axis.

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

  • For the trees: Why not make multiple use of values? For example, if you would use integers from 0 to 100, you could define that 50 represents grass, while 51 represents grass with a tree on top, and so on.

    Aha... trees solved

    + System: int(PerlinNoise.GetNoiseAt(LoopIndex("x"), LoopIndex("y")-1)) Equal to -1
    -> System: Create object tree on layer 1 at (mud.X-16, mud.Y)[/code:3ud3g966]
    
    ^Link updated
    [url]http://dl.dropbox.com/u/666516/perlincraft.cap[/url]
  • + System: Start of layout
    -> Array: Set index 1 to "Hello."
    -> Array: Set index 2 to "My name is Inigo Montoya."
    -> Array: Set index 3 to "You killed my father."
    -> Array: Set index 4 to "Prepare to die."
    + Array: For Each element
    -> Text: Set text to Text.Text&NewLine&Array (Array.CurrentX)[/code:10n9lqyn]
  • [quote:38d0opvc]The current problems are-

    Inability to generate large worlds.

    Cannot implement fluids(lakes etc)

    Saving and loading.(trees cannot be saved as there is no info about them in the array)

    To get a large world you can set perlin to a larger size... say 100 x 100, then set your loop to 50 to 100 for another layout.... using the same seed.

    Not sure what your looking for in terms of fluids, but the cap shows one possibility while showing a possible optimization using one sprite set to different frames.

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

    Keep in mind you've only used the positive values in the noise. There are a few things you can do with the negative as well.

    As far as trees... All I can think of is making an array of all the created sprites, and then saving, and loading it as an external array.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just trying to figure out the rules.

    Or are making them up as we go along?... I just cant tell anymore.

  • iSee so asinine reply's get deleted, but the tasteless thread's go on, and on.

  • Lerp's pretty handy here.

    +Always

    ship set position to lerp(.x,mousex,1-0.5^timedelta), lerp(.y,mousey, 1-0.5^timedelta)

  • > Who wants to add it to the bugtracker?

    >

    Could you do that for me? I don't know,(=lazy to learn to ) how to do that.

    Done:

    http://sourceforge.net/tracker/?func=detail&aid=3156341&group_id=207820&atid=1003219

    PR I'll let you do the one on negative values.

  • Im using the latest build, and setting enabled/ disabled isn't working.

    That fixed it in the past, so yeah you have a bug there.

    Who wants to add it to the bugtracker?

  • I'm trying to make the greenpods go behind the dirttiles.

    Events are run in order, so if you were to place the dirttiles event after the greenpods.....

  • > :lol: foam

    > http://dl.dropbox.com/u/666516/foam.cap

    >

    Still don't know what I'm doing, but I hacked away (as in "with an axe") at your foam and I erased (with the eraser in the picture editor) and now it works on non-black layouts. I'll do some more experimenting and if I come up with anything good or interesting I'll upload it.

    To use a layout with a lighter background simply add a copy of the sprite that has the physics behavior, only without the behavior.

    Then have it the same size as the sprite with the lighten only effect.

  • I've downloaded the plugin and started to playing with it and THIS happend

    It's very slow so I don't think there is any use for that. I have one problem, when a map gets generated I have white horizontal and vertical lines on my screen. I think it's a driver problem, but can you guys confirm it? I've tested it on 3 computers and 2 have lines.

    Im actually doing something like that in my current project, so I can tell you I get the artifacts when I use canvas's "draw point".

    My workaround is "draw line".

    current x, current y, current x+1, current y+1

    That's a lot of currents...., but it works.