LittleStain's Forum Posts

  • I didn't see a function, so I couldn't have known.

    aren't uid's asigned at runtime, though? or is uid a variable here (impossible as far as I know) Maybe I'm just misunderstanding what you are trying to do here..

  • you can replace the 7 in my example by any number you want or even by a changing global variable. it seperates the string into portions which are divided by the seperator "," and if that number is 23436523 or 1 it doean't matter, at least that's what i think I just put there..

    I might have made a small logical mistake, but it should almost be ready for use..

  • You want to check if an integer exists right?

    Does it matter if it's 1243562 or 5 or 5678 or 789

    you could check for each and everyone using the method I showed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Would something like this work?

    Create a group and add a local variable.

    set the local variable to tokencount(text.text,",")

    repeat tokencount times

    system compare two values : tokenat(text.text, local variable, ",") = 7

    • do something

    else - system subtract 1 from local variable

    ok, I made an error here, I'm sure, but it should be something along the realms of this.

  • In the manual you can find system expressions you can use with text-objects.

  • Fanily is a way to group objects, but only objects of the same type.

    You can make a family of sprites and/or a family of tiled-backgrounds, but they can't be part of the same family.

    You can read about it here:

    Manual entry on families

    I'm sure my way would work, with or without families, but families could cut the amount of events down.

    Also you could use Lennaert's way of picking all instances of an object set them to solid disabled, reducing it by adding the condition object is on layer, setting them to solid enabled.

  • While reading about user media in the manual, I don't see any mention that it is not.

    So I guess it is.

  • Just add a condition to check the animation frame.

    object compare frame = 1

  • If you want the real distance in pixels:

    distance(spriteA.x,spriteA.y,spriteB.x,spriteB.y)

    If you just want the horizontal distance:

    abs(spriteA.x-spriteB.x)

    If you just want the vertical distance:

    abs(spriteA.y-spriteB.y)

  • lennaert

    You'd have to check if the family members are on the layer, right?

    Else you'd set them solid across all layers.

  • Why wouldn't it be this simple?

    And thanks for doubting my ability and experience.. :p

  • I'm guessing there are some picking issues in these events.

    If every laserbeam has sparks it would probably be much easier to put the sparks in a container with the laserbeam, so when referencing the laserbeam the sparks are referenced automatically.

    That would take away the need for the id=uid check.

  • Why not just:

    On Start of Layout:

    • RiseMonters: Spawn Monster B on layer X;
  • Make it two seperate events and it will work.

    on w pressed - simulate jump

    on platform landed

    w is down - simulate jump.

    this works.

    edit: I used on landed and not is on floor.

    It's an event that only triggers once if true.

  • Glwrap seems to have to do with webgl rendering.

    Maybe your pc can't handle webgl?