jesusruiz's Forum Posts

  • Thanks Mimiste <img src="smileys/smiley2.gif" border="0" align="middle" />

    I have created sub-events, but now when I start the game, always get the layout 4.

    The new image, am I doing something wrong?:

    <img src="http://oi46.tinypic.com/r73j9v.jpghttp://" border="0" />

    Thousands of thanks.

    UPLOAD:

    Thanks Geometrix, I see that my image is wrong. So try to do what you tell me, seeing the end result of your image.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello and thanks for reading this message.

    I was trying to make a video game that consists of several minigames. Each of these minigames is a layout.

    I would like to start the game, the system will randomly one of those minigames, but can not get it to work.

    I have read this post:

    scirra.com/forum/can-the-system-randomly-select-the-next-layout_topic43927.html

    I have made these actions and events:

    Global variable rd as number (= 0 default)
    System->Start of layout - Action System-Global & local Variable - Set value
    Variable: rd - Value: round(random(your_number_of_layouts)+1) (round() will give an integer) (+1 to prevent obtaining 0 as result of the random())
    ..SubEvent System-Compare Variable
    ..Variable: rd - = Equal to - Value:1
    ...Action: System - Go to Layout, pick your layout 1
    
    ..SubEvent System-Compare Variable
    ..Variable: rd - = Equal to - Value:2
    ...Action: System - Go to Layout, pick your layout 2
    
    etc...

    Here, the image:

    <img src="http://oi49.tinypic.com/2cerepz.jpg" border="0" />

    But as I said, this does not work.

    A greeting and thanks.