mekonbekon's Recent Forum Activity

  • Following on from BigBuckBunny's suggestion, rather than having a second tilemap you could associate the tile IDs to sounds in a 1d array and then reference the array when deciding which sound to play. The benefit of this would be that if you make any adjustments to the map or the sound mapping you only need to adjust the values in the array, rather than redraw the map.

    e.g:

    On sound "walk" ended & Avatar isWalking,

    play (byname) arrayWalksounds.At(TileAt(Avatar.X, Avatar.Y))

  • Keys in a dictionary are case-specific; in your images you have the key as "green" in the list of long list of actions and then "Green" in the Add Key action.

    Not related, but it looks like you have event 9 running every frame - you might want to stick that in a trigger so it only fires once.

    Edit: is event 9 meant to be part of the above function? If so you need to make it a sub-event of it.

    Also you don't need the trigger once on event 3 - all those add key actions can be directly under the AJAX completed event in event 2.

  • Ashley I do have beta releases set, but once I've accepted and downloaded the update shouldn't it be respected until there's a new update? Is there a way to get around this or is it something I'll just have to put up with if I've installed as an app and enabled betas? I'm fairly sure this didn't used to happen.

  • BigBuckBunny This worked perfectly, thank you! I would have spent ages trying to work out the binary format and URL structure.

    I've modified the storage to save the binary string as a dictionary value - this allows me to save multiple samples into a single dictionary and then save that to local storage.

  • Hi, I'm building an app that allows users to record an audio sample, save the data, then in subsequent sessions retrieve the data and play it back.

    Following the Voice Recorder example, I think I've managed to get the binary data into local storage (I can see it as an item in the Local Storage object in debug), but I don't know how to extract it into a suitable format for playing.

    These are the steps taken to save the data:

    It shows in the local storage as:

    To retrieve the data I've got as far as:

    ...but I'm unsure where to go next. Is saving the files to local storage even the best way to do this or should I be saving them directly as audio files to a directory (as in the Voice Recorder example) and then retrieving them from there? Note that I would like the user to be able to retrieve multiple saved samples for use simultaneously, if that makes any difference to the best method.

    Any help greatly appreciated.

    Tagged:

  • You can also attach the tween behaviour to the font and assign the font size to a tweened value:

  • In event 4 you are setting the value at 0,1 to number rather than the cell linked to the name value.

    Also, you could run into trouble later if you have events 3 and 4 in that order as in event 3 you add the name to the axis and then immediately after in event 4 you check for the name.

    Instead, you could use something like this:

    The else statement makes sure you only run one of the conditions. I've added a stop action to the loop to prevent unnecessary searching of the entire array once you've found the first instance of the name; if you want to search the entire array for every instance of name then remove the stop.

  • I've created sliders for the audio FX (phaser, flanger, distortion etc) and would like to apply some max/min values for the various parameters; does anyone have suggestions for these or know of a good reference that I can crib from? I've had a hunt around for some guidelines but haven't found anything definitive.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Apologies if I've misunderstood what you're asking for, but here's an example with three different functions for adding the time & date:

    dropbox.com/scl/fi/g7otdepgvcqf4sl0gzwuz/Daily-Platime-Catcher-Revised-2.c3p

    Repeat1: Only adds a new entry if the date is different to the last entry.

    Repeat2: If the date is different a new entry is added, otherwise it overwrites the time of the last entry.

    Repeat3: Always adds a new entry even if it's the same date.

    If none of these are what you're looking for please explain in more detail and I'll give it another go.

  • I tried uninstalling and reinstalling as you suggested, with just editor.construct.net - I also removed the associated data at the point of uninstalling. I'm still getting the update prompt.

  • Here you go:

    dropbox.com/scl/fi/bd0skr9fh4hojaixnexsp/Daily-Platime-Catcher-Revised.c3p

    I've added comments into the project to describe the changes.

    One thing to note that isn't commented, your array only had one Y column so I set its initial dimensions to (0,2,1).

  • It's because you're pushing on both the x and the y axis - you only need to push the time on the x and then set the value at 0,1 to the date:

    Array_Daily_Playtime Push front Current_time on X axis

    Array Daily_Playtime Set at (0,1) to Today_date

mekonbekon's avatar

mekonbekon

Early Adopter

Member since 9 May, 2014

Twitter
mekonbekon has 13 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

19/44
How to earn trophies