AllanR's Recent Forum Activity

  • are you using ssl on your server? it might need that to connect from the exported version.

  • I don't think there is an easy way.

    do you need to sort time stretching over more than one day? then I would store the raw unix timestamp. then format it when you display the stored times.

    another option would be to store the time in 24 hour in the y=0 element of the array and the 12 hour format in the y=1 element. then when you sort the array on the x axis it will sort the way you want and display from the second element.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made a quick sample. I think you are making it harder than it should be.

    https://rieperts.com/games/forum/waterdrops.c3p

    my sample uses Wait which normally I try to avoid because people use incorrectly, but it works well here.

    after a dropper spawns a drop I have it wait 2 seconds before the dropper returns to frame 0 to make it less likely to have the same dropper picked for the next drop.

  • here is a sample of how to do something along the lines of what Maverick was suggesting...

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

    it doesn't limit how many times other colors can be added, but you are guaranteed 3 of the color chosen in the dropdown list.

    if you don't mind more than 3 of the chosen color then just delete the while block in the BuildBoard function

    essentially, it builds an array of colors to use for the squares. it doesn't need to sort or do anything to the array because it just randomly chooses an index for the next square and then deletes that index so it can't be picked again.

  • I am also Very interested NFTs and possible integration of a digit wallet!

    so definitely keep us posted with how it goes.

  • the mouse click is a rigger and can't have an else.

    the else under your event is red because it is not associated with any event.

    you can have a sub-event for the mouse click trigger that checks your global variable and turns music on or off.

  • a construct array can only hold text or numbers

    so you could push a second array as JSON, then convert it back to an array when pop it out

  • what I do in cases like that is use a family for the sprites. pick the one to destroy by the family, create a new instance by the sprite name and transfer the variable to the new instance and destroy the family one.

  • the fact that it is red means it has been orphaned from the condition it was attached to. whatever that was has been deleted, so the else turns red to let you know it is not an else for anything at the moment. There is a condition above it but the else is not connected to it in any way except that the else is the next thing on the event sheet. delete the else, right click on the event above and add a new else if that one needs an else.

  • or just set the player to the platform x that it is overlapping

  • I don't think it is connected to the event above

  • There are ways to do it but you may be over complicating things a bit.

    how many choices will there be? a few, dozens, thousands? how many levels of depth do you want to keep? last one, several, lots?

    Since you know the list actions, if that list is static for the level there is no need to store it as the first element of the array.

    as actions are performed just add the action to the end of the array using a single dimension. you don't have to sort it, the first element is the first action...

    you will have a record of what happened and that can be stored in others ways for history.

    I would be happy to show an example or two if you want to see more complicated sorting if you want.

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