christina's Recent Forum Activity

  • I'm simulating a view that's not 100% top down (for a point and click game), and I'm looking for a way to slow down the Y component of the sprite's speed

    Any ideas?

    Thank you!

  • Sorry for necroing the post, but I have 2 devices that do support low latency on a number of audio apps, but I can't get them to, using C3.

    Ashley an entry for latency in audio properties, after the already very involved 3D audio positioning settings doesn't sound like too much overhead to me. And new users won't even touch it. Could you implement it please? Latency on Android has been a problem for years, and it's good that Google are on it, but I would like to have access to that property please. And if possible give end users a way to experiment with it.

    In some cases stuttering is *not* worse (such as tiny samples or a metronome app), and any way I look at it, that property is useful, even when all devices become 0 latency.

  • I was wondering AllanR why r0j0's code for pasting to clipboard doesn't work in native C3 javascript, but only in browser> execute javascript

    My guess is something isn't implemented, but what? Can you make it work outside the browser object?

    EDIT: Ah I figured I'd use your solution with a global string,

    1| set imgURL to DrawingCanvas.SavedImageURL

    2| img.src = runtime.globalVars.imgURL

    to get the contents of the image, and it worked like a charm <3

  • R0J0hound would you happen to know how to get the img.src to contain the image data from a sprite?

    EDIT: Ah I thought for a minute and solved it:

    1. paste the sprite to Canvas

    2. on canvas screenshot set img.src ='"&drawingCanvas.savedImageURL&"'

    thanks a million for all the help rojo

  • this one doesn't work in C3's javascript, and I don't understand it, but it still works great in the browser object.

    Thanks so much <3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you so much R0J0hound You were already in the credits...

    This worked right out of the box ( C3 lets you type js anywhere, not just the browser object, but it's the same)

    I understand some of this, there's somePromises, and then you call a blob constructor.

    Do you know how you would write the contents of the Canvas to the clipboard?

    There's a clipboard.write but I'm not sure how

    Thanks again

  • I'm thinking the binary object plus AJAX might be the way to go?

    It doesn't need to be fast. I want to copy a sprite to and from photoshop

  • Thank you so much R0J0hound, this was exactly it. Set match=0 at the start of each loop, and then

    1. if match found, set match =1 and do any actions

    2. if match wasn't found, match remains 0, so do any actions related to no match found.

    <3

  • I know I probably have to rethink my approach, but here's my problem:

    I have a 1D array, let's call it Inventory, with 10 cells, each containing a different value.

    I'm traversing this array, and I check each value to another 1D array, which contains all the unique values.

    The Unique Item array starts off empty and with a width of 1. Each time I find a value in Inventory that doesn't exist in Unique Items, I add this item to Unique Items.

    However if I try to change the width of Unique Items (either by set size, or by push back), so it can fit a second item (and then a third) the program crashes.

    This is the barest minimum of code, and it freezes completely.

    It's probably causing an infinite loop, because "for each element" starts iterating once (since the width is 1) and then I try to mess with the width.

    Any ideas? Thank you!

  • > Aww thank you <3

    Was this made with c3?

    Yes patreon.com/posts/ghostvac-post-in-36674759

  • Aww thank you <3

  • Thanks dop2000 , I had a lot of fun making it.

    Also Construct users are always asking if we can do 3D in Construct, and yeah, we sure can. This is just sprites

christina's avatar

christina

Member since 21 Aug, 2012

Twitter
christina has 5 followers

Connect with christina

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies