Kyatric's Forum Posts

  • Example of using AJAX object in C2.

    WAMPserver a good software to make local webserver so that you can test your PHP scripts before hosting them online.

    W3Schools PHP tutorials and references.

    Forum ate my previous answer and Tom answered the question anyway.

  • The idea is to have the sprite moving from point A to point B, and then coming back to point A.

    Your sprite should have an instance variable "dir" that would stand for the direction the sprite is going. (example, patroling from left to right, up to down, etc...)

    Naming and type of the variable is up to you (number or text).

    For this example, let's consider a number, where 0 is the sprite going to the right, 1 is going to the left.

    + Is Sprite.dir = 0

    ++ Is Sprite.X < destination.x

    => Sprite.X + 1

    ++ Is Sprite.X >= destination.x

    => Sprite.dir = 1

    => destination.x = new destination

    + Is Sprite.dir = 1

    ++ Is Sprite.X > destination.x

    => Sprite.X - 1

    ++ Is Sprite.X <= destination.x

    => Sprite.dir = 0

    => destination.x = new destination

    It is up to you the way you set your destination.

    You can also use the same logic to test the Y position.

    Hope it is clear enough and helps you, let me know.

  • Post options => Edit post

  • From step 8 I'd say you are using an old release of C2.

    R54 exports a jquery file by default in the exported folder, and the content of index.html isn't accurate.

    Now the runtime is launched through :

    <script src="c2runtime.js"></script>
    
        <script>
            // Start the Construct 2 project running on window load.
            jQuery(document).ready(function ()
            {
                // Create new runtime using the c2canvas
                  ?cr.createRuntime("c2canvas");
            });
        </script>
    

    If people copy/paste from your code, they might end up with an error or a slower runtime. (to be confirmed)

    As I don't have a phone, I can't test the rest of the tut, but it seems pretty straight forward and simple to put to use.

    Maybe you should write a tutorial about it. This way you can be sure your tutorial will be viewed and used, and not getting swallowed by the quantity of daily topics/posts.

  • Well textures can be all frames of a single sprite animation.

    Creating instances of the sprite, stoping the animation and setting its frame number to the desired texture would be the way to go.

    You'd only access to that one sprite object and pick its instances.

    If the textures sit in different sprites objects, than you'd have to wait for families.

  • The idea is to move it from the Sprite's position to PathList(nextCell)'s position (object.PathFinder.getCtX(CurrentCell + 1), object.PathFinder.getCtY(CurrentCell + 1)).

    I'm working on this for my current game, I'll try to make an example capx out of it.

  • This mechanic is used and described in the example capx for the pathfinder behavior.

    Edit: also it starts as squiddster descirbed just above.

  • In C2 you can modify the exported logo.png file (that stands in the same folder as index.html).

    The "load screen" will still display the blue centered bar, AND your chosen logo.png.

    That's about the customization to it for now.

  • There's the pathfinder behavior available since 2 days.

    It's "half" of CC's RTS behavior.

  • Point has already been raised (topic), objects are not global for now.

    This is being worked on and will appear in a next release. (Possibly next, it surely was on Ashley's list, it might had got delayed by the "maintenance" and "urgent fixes" releases that occured since).

  • Think also about multi-lingual plugins, they would also require a language file.

    Instead of declaring parameters and actions/conditions/expressions with one string for name/help notice, etc..., you would declare an array of strings refering to the language file.

    If C2 is set to a language, but the string for that language doesn't exist in the plugin's files, switch to default engish.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh yeah I've been using this for around a year now.

    It really helped me reducing headaches due to night use.

    My screen doesn't seem to have suffered so far.

  • Hence you should learn you way little by little completing small projects first (as Inkbot pointed out).

    When you'll be a bit older (and experienced in game making) then you'll be able to tackle MMO programming with a lot more comfort.

    Take your time.

    I wished there had been a Construct and so many internet ressources when I was 12 ^^

  • Oops, I'm realizing now I had overseen this post and PMed him about the same thing a couple of days ago.

    Answer :

    vent/action window: we've got improvements planned, just a very long todo list.

    It might not be in the next release, but it is planned and will be integrated at some point in future releases.

  • Okay, since two people complained about screen size,i'll make the screen size customizable. Regarding the zoom out depending on car speed I had such a feature on another game of mine, although it lead to a strange error with pasting to the canvas, so I'm afraid to try it again.

    Well if the screen size is bigger (but the actual sprite at the same size) it should play okay, that's what I meant by a bigger size.

    Not change the sprite size but the actual "viewport" size if you will.

    Also now waiting forward to see the "custom controls" option :)