Kyatric's Recent Forum Activity

  • Thank you for taking the time of writing the SDK in the first place, and you're welcome. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Oh that was a bug. Nice catch.

    Redownload the capx, I edited it.

  • SDK r54 HTML version 11-09-2011 (the SDK in html)

    The SDK HTML as a zip

    Updated, references added.

    Please let me know if you find any difference between Ashley's SDK and this document.

  • In your event sheet, every tick, "Text" is the object being updated with Message2, not "Text2". You forgot to change it.

    You could have kept the global variable "Message" as it is global to the whole project.

  • Can you post a capx, or describe a bit more how you set up your project, what happens and what you expected to happen ?

    You can check in the PathFinder behavior the way it is done is by making sure that the drag/drop will "happen" if no other drag/drop is "happening" already.

  • The text object belongs to the layout1. Objects can not yet be global in C2.

    You need to create a new text object in your second layout.

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

Kyatric's avatar

Kyatric

Member since 18 Aug, 2010

Twitter
Kyatric has 583,403 followers

Connect with Kyatric

Trophy Case

  • 14-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x15
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x27
    Coach One of your tutorials has over 1,000 readers
  • x10
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

23/44
How to earn trophies

Blogs