daveryaaziem's Forum Posts

  • The "randomLayer = 3" and "randomLayer = 4" should be subevents from "on start of layout", not subevents of "randomLayer = 2".

    (all the tests on the same level, as subevents of "On start of layout")

    Thanks for your help,

    I made the changes, however I still cant seem to get the game to randomly select the layouts

    Here's an updated screenshot

    i855.photobucket.com/albums/ab120/daveryaaziem/screenshot2.png

    thanks

  • i855.photobucket.com/albums/ab120/daveryaaziem/screenshot.png

    oops here's the link to the screen shot

  • Indeed, you can't directly type a layout name, you have to choose it from the dropdown.

    Then do a little workaround.

    Randomize a number and test it.

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

    Did I follow orrectly, here's a screen shot

    <img src="http://s855.photobucket.com/albums/ab120/daveryaaziem/action=view&current=screenshot.png" border="0" />

  • Go to layout random(number of layouts)

    if index is 0 otherwise you know what to do

    e

    I don't know where to find this. When I go to system -> go to layout, I just get a pulldown menu that show my layouts, and then I am only able to select one.

  • I guess that was what my problem is, I don't see where to make a new layout. I went to file,new, but it just opened a new project and the system events only shows layout 1

  • Hello,

    I have another few questions I've had trouble finding the answer to:

    1) How do I copy and paste a layout and event sheet?

    2) Is it possible to have the system randomly select the next layout?

    I would like to have it randomly pick the very first layout, and then have it randomly select the next layout is this possible, if so how do I go about it?

    Thanks again,

    Dave

  • Hi Ashley,

    Do you allow developers to write plugins for construct 2?

    Dave

  • Thanks Ashley,

    You guys have been very helpful!!

  • Thanks!

    I actually built that game twice, and I do remember a brief mention of sub events, but nothing in depth. Is there anyplace that gives a description of every function and feature. I've been to the tutorial on sourceforge, and though it is good, it isn't quite for the novice. I grasp thing pretty quickly when given in lamens terms. The tutorial says there is a ink that has an explanation of everything, but that link is broken

  • Hi Kyatric,

    Thanks for that tip!! I'm still having a problem. It doesn't seem that I can add a mouse action to a mouse event.

    I think event would be

    On bigsprite clicked -> Mouse is not over littlesprite

    but that just doesn't seem to be possible, unless I'm still missing something.

  • Hi Ashley,

    Thanks for the response!

    I'm still a bit confused. I am not finding the options you mentioned on the previous reply

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Has anyone successfully put a construct 2 game on their website that uses joomla 1.5? If so, can you please advise to how you did

  • Does anyone have a example of a game that is similar the the old ball under the cup game? You know, the game that has three cups and a ball is placed under one and the it mixes up and you have to select the correct cup?

    I trying to build something similar and i am getting nowhere

  • Hello again,

    Let's say that I wanted to add a google adwords code so that an ad will display in my game, is it possible to do this with construct 2? If so, how do I go about it?

    Thanks in advance,

    Dave

  • Sorry again for all the posts but I couldn't find the answer to this one either.

    I have two objects on top of each other, when I click on the object on top, the object on the bottom gets the click as well. Is it possible to have the object on the bottom not get the click?

    Here's what I'm trying to do, I have a sprite that covers the entire screen. On top of it I have 5 smaller sprites in various areas, when you click on the smaller sprites, they will become visible. However, if you click on an area that is not one of the smaller sprites you will lose a health. Clicking on the smaller sprite is making the sprite visible, but it is also deducting the health from the bigger sprite that is covering the screen.