mrPeanut's Forum Posts

  • here is a small extended version with over time sizing. Info in the comments on the events.

    dl.dropboxusercontent.com/u/3961018/bigsmallextended.capx

  • thanks

    Also a .exe is not realy conform with the rules of web css. So it will probably use the predeterment font.

    As for preview do not set the font yet just type al lthe test in the font you want. And export implement the font. So you can set it right.

  • i made an endless wave tower defense.

    It is actualy quite easy. Set monsters for a wave and keep a current wave variable (initialise it on 1). Every time a monster dies. Monsters-1.

    If a wave is over:

    if monsters = 0.

    CurrentWave+1 -> set monsters <amount>. Let's say currentwave*5

    set waveText -> "Wave:"&CurrentWave& " monsters: "&Monsters

    repeat untill player is dead..

    ---------------------------------------------------------------------

    Pro tip: For spawning the monsters keep an extra variable OnScreen or something and set it to the amount of monsters

    so set OnScreen = Monsters.

    ---------------------------------------------------------------------

    For spawning them:

    Onscreen>0

    -> MonsterSPawner spawn "Monster".

    -> Subtract 1 from Onscreen.

  • start with an absolute value. abs(value here). It will always start possitive becasue absolute values ignore Plus and Minus.

  • make a trigger. Make initial value for visible = invisible.

    Then when character overlaps it shrink him as much as you want set size = player.width/2 & player.height/2. When he gets over another trigger do multiply by 2. Found a simple way. You can even just scale it.

    And f you want him to run by himself just use platform simulate movement for a few seconds or untill a point is reached.

    can't post links yet but just copy paste this...

    dl.dropboxusercontent.com/u/3961018/smallbig.capx

  • add the custom font to your index.html aswel.

    It is because the layout is loaded but the body uses another font. This is a small CSS thing of inheritance. So it will use the standard font untill you change your canvas size by expanding or minimizing your browser window. Or you put it on the body so it get's auto loaded.

    I just did it for my game. undesign.be/X3

    open your html file when exported.

    add this line to your <head>

    ----------------------------------------------------------------

    <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />

    ----------------------------------------------------------------

    Then add this to your Body{ } style

    ----------------------------------------------------------------

         font-family: <name of your font>;

    ----------------------------------------------------------------

    boom your font is there from the start of your game

  • I just wanted to show my current projext X3. This is the second game i'm making. First one was tiny defense a endless wave tower defense (http://tinydefense.clay.io).

    X3 on the other hand is a kind of physics thingy shooter. You kick energy at enemies.

    Right now there is a tutorial, 3 levels, and a playground. At this point i'm wtill under 50 events and most of this is thanks to my programmnig background which taught me to re-use and use inheritance.

    current bugs (features):

      • If you press 'r' enough you got a clone army.

      The game: undesign.be/X3[/b]

      Also a big thanks to the construct2 team for making such an eleborate framework. If i ever have money i will buy it.

    • Try Construct 3

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

      Try Now Construct 3 users don't see these ads
    • small physics shooter concept i'm working on:http://www.undesign.be/X3

      infinite wave towerdefense :http://tinydefense.clay.io

    • well,

      If player dead -> system wait (amount of time) to stop most things

      then a sub event if key presses spacebar. Load layout (your game layout or menu layout depends on what you want). Maybe reset your global variables aswel if you use lives or score or money.

    • Hi everyone,

      I'm having some trouble with the testing of my project. I just upgraded to the latest version. I was working on my game. When i wanted to test no element but the button was rendered.

      <img src="http://i.imgur.com/NUyrSmLl.png" border="0" />

      untill i made my screen quite small.

      also another chrome tab was opened with the url

      "http://--original-process-start-time%3D13013946897695710/".

      Now i'm having some trouble with testing because of it. Does anyone have this aswel or an idea how to fix it?

      Construct2 restart <font color=red>failed</font>

      Pc restart <font color=red>failed</font>

      Construct2 re-install <font color=red>failed</font>