ldiebold's Recent Forum Activity

  • How do you port an event listener to a construct 2 conditional?

    I'm trying to port MIDI.js but don't know how to integrate the MIDI.Player.addListener(function(data) {} ) conditional.

    Does this make sense? If anybody requires more information to help answer my question, please let me know

    p.s. yes, I am aware that there is already a MIDI.js port but MIDI is integral to my project and I require a high level of control over how this plugin works

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the heads up.

    I wrote a dom manipulation plugin that will definitely need some updating, should be fun!

  • I hope they never go 3D and focus purely on 2D.

    The added complexity of a 3D engine would be staggering.

    Unity does just fine.

  • ah,

    I got so excited about the idea... didn't even realized it had already been built!

    Thanks

  • Looks like chrome now supports midi!

    Exciting times!

    Still waiting on the other browsers but this will probably be a thing very soon!

    In the meantime, I'm working on a plugin that will allow midi playback in construct 2 using midi.js, will keep everyone posted

  • Hey guys,

    If you're interested in my result, check this out:

    http://www.solfa.me/experimental/touch-type-solfa/

    It's a prototype for a touch typing program the gradually add's new words each time you reach the end of the line. The method I ended up using is relatively clean... It involves masks and spawning sprites. To make it move across the page, I had to be sure of the distance between two words so I used sprite text and made the letters equal distance apart.

    The hard part was finding a font I liked and converting it into an evenly spaced sprite font, but I got there in the end!

    Still, it would be cool to have a clean solution that uses span tags... But hey, this would have taken me twice as long to build from scratch with javascript <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • I had a brief look but couldn't find anything. Will check again

  • Hi guys,

    Is it possible to change the color of individual letters in a text file? in html, I could use the <span> tag.

    for example:

    I've come up with some solutions in my head, but they're really really dirty. Here's a couple:

    • create a text object for every letter: Each letter would have to refer to an array to find out their width. When adding new letters, the width of the previous letter would need to be considered so that they're the correct distance apart (told you it was dirty)
    • Use a sprite font: Using a sprite font, it's easier to find a letter because all widths are the same. A coloured square with an "additive" blend mode can then be create over each letter. Changing the squares colour will change the colour of the corresponding letter.

    Any help would be appreciated! I've tried the latter example and it worked but surely there's an easier, more elegant way?

    : )

  • In regards to the problem above ^^

    Turns out it was my server causing the problem.

    I was serving the video using php's built in server which doesn't cut the file into chunks (at least not straight out of the box).

    If anyone has a similar problem, this link should help http://stackoverflow.com/questions/8088364/html5-video-will-not-loop

    Even though it's talking about looping a video, it still answers the question.

    I fixed the problem by setting up a virtual machine with vagrant but that's probably too advanced for the average user. If you're having trouble, try using "wamp" or "xampp".

    Long story short, you need a server that can send a video in small chunks.

    Hopefully this helps people out with similar video playback problems!

  • Hey guys!

    I spent ages trying to figure out why I couldn't play mp4 videos when exporting to NWjs.

    Turns out NWjs won't let you play mp4 videos by default (pretty sure this is for legal reasons). You can fix this by replace the default "ffmpegsumo.dll" file in your projects windows 32bit directory (pretty sure 64 bit is also available somewhere out there!).

    I've only tested this for windows versions.

    Here's where I found the file: http://stackoverflow.com/questions/29590898/where-to-find-ffmpegsumo-libraries-for-nw-js-0-12-0-play-audio-files-in-nodewe

    NOTE: This is only for personal use. Look into the legalities of using mp4 codecs before publishing a game with this file.

  • I've been able to make a simple video player that loads a local video and seeks to a position using a slider bar.

    The problem is, when I apply these same concepts to an on-line video, it doesn't work!

    For example:

    - Set playback time to SliderBar.Value

    The action above will restart the video from the beginning.

    I've checked my numbers, this doesn't work either:

    - Set playback time to 10

    Gives me the same result.

    Some more information

    • The video playback time is working
    • The sliders max value has been set
    • I've tried converting all playback related numbers to integers
  • Thanks for your reply.

    I've tried testing it using floats, but can't even get it to work with an integer at the moment!

    For example:

    Set Playback Time to 5

    This just restarts the video. Has anyone else faced a similar problem?

    Have tested it with an mp4 and webm but neither work.

ldiebold's avatar

ldiebold

Member since 24 Sep, 2012

None one is following ldiebold yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies