Guizmus's Forum Posts

  • Hey,

    The code of the text plugin doesn't seem to enable such a behavior. Only once color is saved in the object, the only function setting the color is overwriting it, and it is only used 2 times in the whole object : savetoJSON, and draw, witch fills the whole text with the selected color. Sounds like this needs a specific plugin for such a behavior, or multiple texts :/

  • Hey,

    You can try to modify the behavior, but there is no real need for this. Instead, just set the "default controls" to "No" in the behavior properties. In your event sheet, use the "Simulate contol" action on your sprite.

    For example, in case the "up" key is down, you can simulate "up" and "right" controls, moving in diagonal.

    The problem with this is that you will only move on the perfect diagonal (45?). If you want to move faster on the X axis than on the Y one, you can add a second 8 direction behaviour on the sprite, simulate its controls too, and set its speed differently, so one behaviour moves the sprite on the X axis, the other on the Y one.

    (I'm not a pro on isometric movement, but this seemed to do the trick for me)

  • Hum, just add this pin on the letters sprites.

    <img src="http://guizmus.fr/captures/c2/capture4.png" border="0" />

    By the way, don't destroy/redraw letters every tick ! Put this in the start of the layout.

    Same goes for the text "buffer", don't keep the text object, use a variable.

  • I struggled with it myself for some time. This is what I came with in the end :

    • setting TMX save mode on CSV
    • in Tiled, I used the "tile properties" option (right click on the tilde you want to set), and set "collision" to 1 for example.

    <img src="http://guizmus.fr/captures/c2/capture1.png" border="0">

    • events I used to load the map and set the collisions

    <img src="http://guizmus.fr/captures/c2/capture2.png" border="0">

    • How it renders (i set collisions only on walls)

    <img src="http://guizmus.fr/captures/c2/capture3.png" border="0">

    Here is the .capx if you want to try. You won't be able to open the tmx file in Tiled though, because of the tileset reference. Open it in notepad, and change the tileset path to yours, it's one of the examples of tiled.

  • small physics shooter concept i'm working on:http://www.undesign.be/X3

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

    Nice mini games :)

    Finished the X3 one, the 3rd level made me try several times ;)

    Tinydefense, being a huge fan of TD games, the lack of options made me stop fast, but I still got Score 9 :p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe not the most usual way to use C2, but I needed to do a dynamic header on a website, with photos changing when hoover, and other little tricks. Could have been done in CSS/js, I choose C2. Except the little loading bar at the start (not a lot of resources), the final output is just what I needed, and most of all, it works well on every up-to-date navigator !

    (Photos with a red point on it are not the first displayed, they are the ones coming up after the hoover. I didn't have the real second photos at the time.)

    Thanks Scirra !

    <img src="http://guizmus.fr/illustrations/banniere_c2.JPG" border="0" />

  • Wow.... I had some hard time understanding how it worked, mostly because I didn't know how to use fuzzy logic.

    Great plugin !

    EDIT :

    rexrainbow

    oh!~I see..."eat" is both a rule name and a output value !!! THX!!! <img src="smileys/smiley12.gif" border="0" align="middle" />

    The output values seems to be directly the fuzzy evaluation of the rules of the same name, with the parameters applied.

    rexrainbow :

    The only thing I don't understand now is how you mix multiple rules in 1 output. Do you sum the different output of the rules (could be logic as each rules correspond to P,Zo or N of a value, could be complementary), or ponderate each output value to calculate the final output ? Maybe the max of every rule ?

    For example, if I take the "eat" rules :

    • if the stomach is positive, always want to eat
    • if the stomach is neutral, want to eat if hp is neutral or negative
    • if the stomach is negative, want to eat only if hp is negative too

    So in this case, if the stomach is 30% positive and 70% neutral, you should ponderate the result of the 2 first rules by their respective %, am I wrong ? (this question is more about checking I understand your plugin right)

    Last thing, could we, in this same example, mix all 3 rules in a "Fuzzy.OR" statement ? Something like

    OR(

    "+Stomach",

    AND("stomach",OR("hp","-hp")),

    AND("-stomach","-hp")

    )

    (Just realised this last question is basicaly the same as the previous one...)

  • Hey everybody !

    I'm Antoine, a french web developer, playing around with js,AJAX,PHP,CSS,... for a while now, for work and for recreation. I've worked on some graphic engine for JS, but hit the performance wall quite fast. I've learned a lot since, most of it by reading a lot, and found Ashley's work on other site, then discovered C2.

    I'm still in the testing phase, have to find all the shortcuts I need, explore the JS SDK and all those things, see how to do XXX (XXX could be a lot of things...), but this seems to be the construct I needed !

    Thanks, and see you on the forums !