LittleStain's Recent Forum Activity

  • It's an expression..

    From the manual:

    clamp(x, lower, upper)

    Return lower if x is less than lower, upper if x is greater than upper, else return x.

    System every tick

    sprite set width : clamp(self.width,10,200)

    this way the width of the sprite can never be more than 200 or less than 10

  • system compare two values : touch.x < 640

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I guess you could loop over the array and remove all values that are between 90 and 270..

    Or perhaps this could be done much better while creating the array, depending on how you have your events set up..

  • Would the clamp expression help?

    clamp(x,lower,upper)

  • You are not doing anything wrong..

    Have you looked at what the whole string is before using the right() expression?

    What you are seeing are the last 4 letters of that string..

    Everything is working like it should

  • Did you read this post?

    From the manual, there is a link to it at the top of this page:

    left(text, count)

    Return the first count characters of text.

    mid(text, index, count)

    Return the count characters starting from index in text.

    right(text, count)

    Return the last count characters of text.

    as you can see in the expression right(), the index is missing, which is logical, because it is counting from the last letter of the text..

  • By adding a bigger picture in the image editor, or setting the size in the properties..

    I mean the initial particle properties, part of the setting for the particle object..

  • mid(text,index,count)

    Mid() - is the expression

    text - is the text you want to manipulate

    index - is the number of the letter you want to start with

    count - is the amount of letters you want to show

  • From the manual, there is a link to it at the top of this page:

    left(text, count)

    Return the first count characters of text.

    mid(text, index, count)

    Return the count characters starting from index in text.

    right(text, count)

    Return the last count characters of text.

  • I would suggest you share your events and/or capx..

    The thing you are trying to do shouldn't be hard, so it might be conflicting events..

  • In the image editor add 5 extra imagepoints.

    On mouse click - Object spawn other object at imagepoint = choose(0,1,2,3,4,5)

  • If you don't want to use a variable..

    text set text = mid(Browser.ExecJS("Date()"),4,3)

    Browser.ExecJS("Date()") is a string..

    You manipulate the string with the expression..

    mid(text,index,count)

    Mid() - is the expression

    text - is the text you want to manipulate

    index - is the number of the letter you want to start with

    count - is the amount of letters you want to show

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies