Shapter's Forum Posts

  • Hello everyone,

    I'm creating a memory matching game for kids using many different images.

    The problem is that I need to randomly pick card images from an online png database and make them appear as cards at startup. Moreover, the file giving the image's URL has to be easily to modify because someone else will update the image databse once i've finished the game.

    I've tried to append the image's URL using the AJAX, XML and CSV plugins (and also the URL to Image plugin) but I cant get it to work properly, mainly because importing files with ajax is more complicated than I thought.

    What do you guys think about this ?

    Should I use AJAX and XML/CSV ? Should I use an array to stock the URL strings ?

    I'm quite lost now that I've seen the many tutorials on Scirra and Stack Overflow forums : it seems that there are many methods to use a database-like file in Construct 2 and I dont know wich one would be the more optimized for images (and easy to manage).

    Any ideas ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there everyone,

    I'm having a problem with the function "On frame changed".

    It seems to be effective only when the animation is playing and I need it while the animation is stopped.

    In fact the user has to click on the object so the frame changes. Then the value of the frame is used in another part of my prototype (to add a physic force on another object).

    Is there any way to bypass this limitation ?

  • Hi there,

    Got the same problem to simulate an anchored ship on a loading bay.

    Set.X is useless and buggy so i'm looking for something similar to the last 2 examples you guys uploaded.

    In fact I dont understand why the global value FORCE is set at -500, it doesnt seem to work on my project ...

    I think there is a way to make the Sprite.X-Initial.X equal to 0 so the boat wont move horizontally but I have no clue on how to do this for the moment.

    Any idea ?

  • Found a solution that didn't fry my brain !

    I just added some kind of floater at each horizontal sides and it seems to work, even if i'm not really sure about what kind of problems it's going to cause during the rest of the development.

    Using physics on the objects but not on the water seems weird but it seems to work.

    Here if anyone want to see :

    docs.google.com/file/d/0B-727M6ikDE_VHJmbXRXNXJ0Nzg/edit

  • Hello there!

    Thank you Keepee for this example, it's very nicely done.

    I'm currently prototyping a game in wich the player has to load a boat with various stuff without unbalancing it.

    Your code is great for cubic object but I'm having a hard time keeping the steadiness of the boat, wich is rectangular for the moment. I tried to tweak the angular damping but it's of no use : the rectangle isn't going back to its original angle when it has been unbalanced...

    Do you have any clue about this ?

    Here is the .capx

    docs.google.com/file/d/0B-727M6ikDE_LVBOZmJ2WjF5MVU/edit