Asmodean's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

Asmodean's avatar

Asmodean

Member since 31 Jul, 2015

Twitter
Asmodean has 9 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

15/44
How to earn trophies