Asmodean's Forum Posts

  • I changed to -20 and every 0.5 Seconds without problem. What Browser do you test it?

    Try to disable the the destroy event (Line 8), now the objects will add up but maybe it helps to figure out if that's the problem.

    Edit: I changed a litte bit, please have a look if it's know work better.

    drive.google.com/uc

    Up and Down-ArrowKeys for the Player.

  • I have only a problem on the start, because of the way I destroy the sprites. I get one block but after that it's back to normal. What did you change?

  • A rough example:

    drive.google.com/uc

    I don't know if it's really what you want.

  • It depends on what you want to achieve. I don't really understand from the screenshots what you want to do.

  • You have an infinite recursion, therefore you get a stack overflow.

    When you create your 'obstacle1green' then you also create an 'obstacle1purple' and that again created an obstacle1green and so on.

    The same with the other obstacles.

  • Can you down a line in the same comment bar without having to create a new bar?

    Alt 013 on then numpad should work. (hold alt then 0,1,3 on the activated numpad).

    Be careful. anything that is highlighted will be erased.

  • I made a litte example, hope that helps.

    drive.google.com/uc

  • Isn't it this.inst.x and this.inst.y like in C2?

  • I don't know if something like that was posted already or if it's really helpful for you. but have a look:

    drive.google.com/uc

  • how do you do a throw that affect by gravity/platform?

    With platform-behavior I would use Vector X and Vector Y they are depending on the parameters of the platform-behavior.

    Something like:

    + Mouse: On any click

    -> Sprite: Set Platform vector X to 750

    -> Sprite: Set Platform vector Y to -500

    With the parameters:

    Max Speed = 750

    Acceleration = 5000

    Declaration = 500

    Gravity = 1000

    Max fall speed = 500

    You can set the parameter on the fly or in the behavior settings. You have to teak them until you are satisfied.

  • Is it possible to use For each loops to iterate over nested.

    My guess, it's not possible with 'For each', because the first 'For each' picks a sprite and for the second 'For each' there is only this sprite visible.

    But it should work with a normal 'For loop'. You can address a sprite directly with Sprite(IID).

    It would look for example like this:

    + System: For "loop1" from 0 to Sprite.Count-1

    ----+ System: For "loop2" from 0 to Sprite.Count-1

    -----> Text: Append Sprite(Loopindex("loop1")).UID & " "&Sprite(Loopindex("loop2")).UID & newline

    This puts two UIDs from the sprites in a line in a Textbox. With loopindex("name of loop") you get access to the currently loopindex of this loop.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think, the easiest way is with 'tokenat'. If you have more complex command you have to use Regex.

    from the manual:

    "tokenat(src, index, separator)

    Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges."

    I made a little example with tokenat:

    drive.google.com/uc

    the commands are: left, right, up, down, and the amount of pixels to move.

    left 50 for example

  • I want to have a global constant that has an exponential expression like:

    c1 = 1.009249522e-03, c2 = 2.378405444e-04, c3 = 2.019202697e-07

    c1=float("1.009249522e-03");

    or

    c2 = "1.009249522e-03"

    c3= float(c2)

    The exponential expression has to be a string and with float it is converted to a float

    Edit: I see you wrote constant

    If you define a constant you can use 1.009249522e-03 but this will converted to 0.00100925. If you need the exponential expression put it in a string and if you want the float convert the string to a float.

  • As always, I don't know if I understand this correct, but you could use ' is overlaping at offset' . Therewith you can find out if something is left, right, up ,down of your player.

    I made a litte example:

    drive.google.com/uc