LittleStain's Recent Forum Activity

  • Str(value) turns the value into a string..

  • Yup , it work like that . Thanks very much . i'll need that spare event from my limited 100

    Officially you should use str(LevelsCleared), which turns LevelsCleared into a string..

    Just so I don't teach you the wrong way..

  • Ok, first time I noticed this..

    Goto layout by name : ""&LevelCleared does work, but just LevelCleared doesn't..

  • fixed it , the trick was to make another attribite which is a text not a number

    LevelsPassed: is a text

    LevelsCleared: is a number

    so it become like that :

    when level is switched for example : add 1 to LevelsCleared

    Every Tick : set LevelsPassed to LevelsCleared

    When mouse is clicked on Sprite 73 : go to layout "LevelsPassed"

    I hope someone else find this useful . Close the topic please .

    Like explained above, no need for the LevelsPassed, you can just set the goto layout to Levelscleared without "

  • You mean LevelCleared a global variable number and your layouts are numbered without anything else?

    Then it would be goto layout by name: LevelCleared (without " around it)

    If your layouts are called Layout 1, Layout 2, etcetera (the way Construct2 names them automatically)

    Then it would be goto layout by name: "Layout "&LevelCleared (don't forget the space after Layout)

  • Example

  • It was made with stable release 216

    Downloadable from here:

    https://www.scirra.com/construct2/releases/r216

    In the meantime here's the screenshot:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:1mmh38oh](added the restart with spacebar-event and highscore setting just to be able to keep playing)

    You missed to set 'balls' back to 10

    OldieSteve

    I would set in the Ball-Physic Collision-Mask to Circle and 'Prevent rotation' to No. That could improve the physic and prevent that balls get stuck.

    Seems like you were one minute too soon downloading..

    Already fixed that..

  • It shouldn't make any difference..

    Choose(1,2,3)

    is the same as

    Choose(1,1,2,2,3,3)

    is the same as

    Choose(1,3,1,2,2,3)

    Random(0,5) will give any number between 0 and 4.999999

    if you are going to round it,

    0 will only be if the number is between 0 and 0.499999),

    but 1 will be between (0.5 and 1.49999)

    So yes there is twice as much chance of 1 than there is of 0

    I would use floor(random(0,variable+1) that way all numbers from 0 to variable have the same chance of being selected..

    0 (from 0 to 0.99999)

    variable(from variable to variable+0.99999)

  • You can compare text like any other value in Construct. The only thing is, that comparing text is case sensitive (Hello and hello are not equal)

    You could ofcourse convert the whole text to lowercase or uppercase before comparing if needed:

    lowercase(text)

    Convert the given text to all lowercase

    uppercase(text)

    Convert the given text to all uppercase

  • I couldn't download without allowing cookies (no chance) but have looked at the amended LittleStain version.

    Good work, OldieSteve.

    Nice and simple, with good gameplay.

    Now stop being so hard on yourself!!!!

    It is indeed a nice little game..

    (added the restart with spacebar-event and highscore setting just to be able to keep playing)

  • This can be done multiple ways, depending on your events and what you need it for and when..

    Not sure if you've seen this topic from 3 days ago

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