newt's Forum Posts

  • How about a method to give people some of your own points?

    I've got 5k+, and I wouldn't mind sharing some of the wealth.

  • Have you tried destroying the edit box?

  • Normalrandom is fairly new, so that would explain why its not on the wiki.

    Then again clamp() is in there, as well as many other expressions that give very brief descriptions that leave a lot to be desired.

  • Not related to create but more to ie. overlaping at offset.

    If i do something like

    + A: overlaps B : offset (10,10)

    - it checks if object A is overlaping B at lower right corner.

    How to check if there's an offset all around object 10pixels?

    Could easly do:

     + A: A overlaps B
       + System: distance(A.X, A.Y, B.X, B.Y) Lower or Equal to 10
       -> do something

    but is there a way to do this inside "Is overlaping at offset" condition?

    Not without adding 3 other overlap at offset conditions.

    You could add an array in a loop, but its just as contrived.

    +>for x = 1 to 2

    ->for y = 1 to 2

    -->sprite overlaps sprite2 at offset ({10,-10}@loopindex("x")),({10,-10}@loopindex("y"))

    --->do stuff

  • Well spawning means an object created by another object, so you will need to clarify if you want it spawned, or created by the system.

    Either way you can get a ranged random from normalrandom().

    As a spawn:

    +>Island spawn object tree

    ->tree set position to island.x + normarandom(0,xmaxoffset), island.y + normalrandom(0,ymaxoffset)

    As system create:

    +>system create object tree at island.x + normarandom(0,xmaxoffset), island.y + normalrandom(0,ymaxoffset)

    Then you can take that farther by using numbers as image points with random.

    +>set global.value("rangen") to random(4)+1

    ->+>system create object tree at island.imagepointX(global.value("rangen")) + normarandom(0,xmaxoffset), island.imagepointY(global.value("rangen")) + normalrandom(0,ymaxoffset)

    Given you have set up 4 image points numbered 1-4 on the island.

  • Djordhan

    I'm almost ashamed to say this but shouldn't that be on collision?

    Flow's animation might get set to the first frame continuously, and nooobody wants that.

    Reference to Weinergate in there ... somewhere.

  • OID is object id, a specific number given to each different type of object.

    In this case its the object cover.

    So basically is saying if object cover's opacity is equal to 10, and if the number of the objects called cover placed into the selected objects list is 2... do stuff.

    Not to be confused with UID, a specific value assigned to each individual instance of an object.

  • Might check out Arsonides plug Grid tree.

  • Thanks Jayjay I'll give it a go.

  • > ...

    > sometimes i have to add empty "" for that to work and sometimes works without it :/

    > ...

    Although Construct tries its best to convert between numbers and text, you are free to explicitly convert to text with the expression 'str':

    AppPath & str(random(10) + 1) & ".png"

    This should work without exception.

    Ampersand concatenates to string, so it should automatically be converted.

    I've seen others use the plus sign, and it worked, but I can't think of a situation where that method would be better.

  • Random(10) +1 unless you have a 0.png

    Like shinkan said

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think _________ is a pretty cool guy. eh spams and doesnt afraid of anything

  • Its not that bad really. I have my z heights via a height map, all I need are some expressions to move that around a bit. All I found so far is stuff about using matrices... not that easy to plug into Construct.

  • Nothing that extravagant, no 3d collisions, or z height changing for characters, just a simple iso type view for terrain, or buildings.

  • Can somebody give me a few references on how to apply a side view or pitch/yaw to a regular sprite distortmap?

    Im aiming for some type of perspective view that can be rotated.