vee41's Forum Posts

  • You could use built-in pathfinding behavior, I recall they added features to support movement cost.

  • I believe results would reveal, that easeTween should have been official plugin a long time ago ;) I recall that Ashley did recently say that he has tween behavior somewhere on his list though.

  • Do you mean on click event, or perhaps detecting when two objects overlap? More information or example .capx would be nice to have :)

    Most probable approach would be to use 'is overlapping' condition and compare Z orders of the objects. But like I said, more information about your situation would help.

  • Great read, thanks for the link sqidd!

  • CrudeMik Fixed it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This should work:

    Door system

    What I changed is, that it saves the name of the layout when entering a door, and at the next layout, spawns the player at the door that leads to previous layout.

  • Try something like this:

    Give door object instance variable: gotoLayout

    For each door, put the name of the layout you want the door to lead into this variable.

    On spacebar pressed

    Player is overlapping door

    .. goto layout door.gotoLayout

    .. // perhaps set your 'locationPoint' here too, so you know where to spawn the player in the new layout

  • There really is no easy way, network multiplayer tends to go to the advanced territory with need for separate server process and stuff. :) Search the forums for few examples though, I recall seeing some.

  • I'm having this same issue. I have instance variables attached to a family and I have to test collision between the SAME family, and access those variables at the same time between both! :/ Is there still no good solution for this?

    Here is one solution, I don't see why it wouldn't work with families as well:

    Evil sprites example

    You could save variable values from picked instance into local variable, and compare those to variables of other instance. Then react accordingly.

  • I expanded the example a bit, added comments and few extra columns.

    Yes, there is easier way to import large data sets: check out tutorials about importing data in XML or JSON format :)

  • loopIndex would be the current 'round' of loop. So if we for example have a for loop that repeats 5 times it would work like this:

    for 1 to 5

    .. append loopIndex to text

    Text would read: 12345 after the for loop would have finished running, adding a number each 'round' the loop does.

    What this allows us to do with arrays, we can for example go through each row with loopIndex. So the same for loop with array could work something like this:

    for 1 to 5

    .. append array.at(loopIndex) to text

    After the loop text would read whatever was contained in array values 1 through 5. I'll try to expand on that example a bit tomorrow if I got time, to make it easier to understand. :)

    In your case, you could just add rows 2-13 to the part where text is displayed (the on click event). I'll expand the example with this when I got some more time :)

  • Aha smashing! Is that a relatively new addition or have I been blind all this time?

    I think it has been there for quite a while, not implying anything about your vision! :)

  • Put events in separate event sheet, right click on event sheet you want the events to appear in, and choose "Include event sheet".

  • It does not appear as there is already a background object in the layout, the one you have outside layout. Every text will have background object associated with it, and that particular texts background happens to be the one outside the layout.

    You could:

    a) Move all backgrounds to proper positions at layout start

    b) Move single text and single background outside the layout

    c) Have all objects in separate layout, so you don't need to have any objects outside layout

  • Yup, arrays themselves don't save the data between restarts. Look into web storage object, that would probably work for you.