Yswellin's Forum Posts

  • They're all on the same layer. Guess that will have to change!

    I just wonder why it seems to work fine once and then never again :)

  • I'm having trouble with sprites not staying behind other sprites on relaod of the layout.

    <img src="http://i.imgur.com/LpUPQ.jpg" border="0" />

    On the left is what it is supposed to be, and what happens upon the FIRST instance of loading the scene. When the scene is reset however, the second image occurs.

    Any help would be greatly appreciated! Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hi, i read a lot of post but i can't find how to change the buttons style. color, style, font etc etc.

    thank you all

    Hi! I'm sure you've figured it our by now, but you should take a look here

    scirra.com/forum/image-buttons-and-clickable-images_topic53914.html

    as this thread describes how to make sprites clickable (like buttons) using the mouse object. That way you can make your buttons as crazy as you want in Photoshop, Gimp, whatever, and import them into your game, rather than have to use CSS.

    Hope this helps someone!

  • Oh wow I didn't expect that :D thank you!<img src="smileys/smiley9.gif" border="0" align="middle" />

    Yes...I think it does make more sense now. So it's not an all or nothing then. Or, rather, you can make an event sheet not linked to a layout, but with instructions that can be used over and over in many layouts.

    But then how does the game know when to use the include?

    I can see it is draggable between events, so I'm assuming standard top down processing of events is still in force? Ie: things above the include will run first, then the include, then whatever is after the include.

    Thanks!

  • I am having trouble figuring out "include"s in my event sheets.

    I have read the manual on this topic, but there isn't a whole lot of information: scirra.com/manual/82/includes/page-1

    I want the next scene to be exactly the same as the previous ones.

    I know "include" is like copy/pasting over the whole of an event sheet, but for me I get unstoppable looping of scene 2.

    Can someone point me to a good resource for learning how to use include? Or give a brief explanation here?

    It would really be appreciated.

    Thanks!

  • You might try making a variable that gets 1 added to it every time an enemy spawns.

    ex: variable name: numberEnemiesSpawned=0 (at the beginning if no enemies are present. Replace 0 with the number of enemies to be spawned/killed initially).

    and variable name: numberEnemiesToBoss= 3 (this means that you want it to be 3 enemies spawned/killed until the boss appears)

    then you can make a condition:

    system - compare two variables

    first value - numberEnemiesSpawned

    comparison - =

    second value- numberEnemiesToBoss

    with the action of

    sprite - is visible (or however you want to spawn your boss)

    the above will make it so that the game checks to see if numberEnemiesSpawned and numberEnemiesToBoss are equal.

    then you make conditions such that every time an enemy dies, it adds +1 to numberEnemiesSpawned. It should add +1 up until 3 (starting from 0, not one, or else it will only be two baddies who are destroyed before the boss!).

    finally make a condition such that when numberEnemiesToBoss = 3 the boss spawns.

    Hope it helps! Let me know if anything is unclear!This worked for me but my game is different from yours :)

    NB. When I did it they were global variables. I don't have enough experience to know if instance variables will do!