LittleStain's Recent Forum Activity

  • Construct2 has the anchor-behaviour for this..

  • I think you are using uid in the wrong way. A uid is assigned to an instance after it is created, so picking it before it's spawned seems impossible.

    Instead of uid, use an instance variable set differently for each member of the family and you should be ready to go.

  • Touch.alpha

    Touch.beta

    Touch.gamma

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

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

  • Try Construct 3

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

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

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies