AllanR's Recent Forum Activity

  • oh, just uploaded another version... now you can toggle showing or hiding the Dots, and I made the dots bigger (the way ROJOhound had them), and if you touch a dot, it drags that one (so the edges work better).

    re-download the link above if you want to see what I did.

    EDIT: also made which ever cloth you drag move to the top of the layer

  • ok, I changed the way Drag and Drop works - uses touch, and you don't have to touch one of the points, it picks the nearest one on the cloth that you touch. (so you can't miss)

    I didn't change it to use a family because of the Array issue and the Limit function needs two instances picked at the same time, which makes that a little more complicated (you either need two families or pick the first instance and save its position, etc.)

    so, instead I made the cloth have different frames for different images (used flags as an example).

    https://www.rieperts.com/games/forum/ClothFlags.c3p

  • yes, a family would work fine - just put all the instance variables that are currently on the Cloth sprite on the family object.

    family objects can't be a container, so you will have to create an Array instance for each family member and manually Pick it with the family...

    (I normally would give the family object an Instance variable called ArrayUID and store the Array's UID to make picking easier.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have had issues with Apple doing Instance IDs differently in the past, so I switch the project to use UIDs instead of IID.

    now it works on my iPhone and iPad... it blew up with the old version on mine too.

    My phone uses about 40% cpu, my iPad about 92% cpu.

    so, download from the link above for the updated version.

  • well, curiosity got the better of me...

    here is a C3 version of ROJOhound's file. Uses mesh and built-in functions.

    On my computer the C2 version uses about 40% cpu. the C3 version uses about 25%.

    I hadn't played with mesh yet, and turns out it simplifies what C2 had to do with the Paster plugin. There are probably more optimizations that could reduce cpu further.

    https://www.rieperts.com/games/forum/Cloth.c3p

  • You can check the family object's "ObjectTypeName" property to find the name of the sprite. You can also give the family instance variables, and then assign each sprite in the family appropriate values.

  • Do you have web hosting that can create MySQL databases?

    From C3 you use AJAX to call a PHP script on the server that reads and writes to the database. There are a number of tutorials to help get you started.

    If there are not very many activities, they could be stored in a project file within C3 (using an array or json) and you can randomly pick from that.

  • I would be interested in some actual user testing here. People intuitively understand how to twist a knob. I am not convinced that users will understand that up always turns clockwise, down always means anti-clockwise. If I clicked on a knob, I would want to make a circular motion. Dop's first example seems more intuitive to me - although I would want the button to continue turning if the mouse/touch drifted off the button.

    I would say use a really nice looking slider if you want up = more, down = less.

  • when you run your project, if you press the F12 function key it calls up the Console / developer tools... shows lots of valuable details.

  • the error I got trying it out is:

    Access to XMLHttpRequest at 'https://construct-test.herokuapp.com/' from origin 'https://preview.construct.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    so you must allow cross domain calls on the server...

  • I am willing... but have limited time today. Will see how tomorrow goes.

  • I would use LayerToCanvas X/Y to get the coordinates on the current layer, then CanvasToLayer X/Y to get to the new layer at the equivalent position.

AllanR's avatar

AllanR

Member since 21 Nov, 2013

Twitter
AllanR has 23 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies