codah's Recent Forum Activity

  • https://www.scirra.com/forum/roguelike-plugin-c2-rot-js-interface_t118452

    edit: this is just to generate a whole level, I guess it doesn't really answer your question. I'm not sure why you need a layout per room.

  • There are many resources online describing algorithms to accomplish this kind of thing, and even a plugin or two if you search the add-ons forum.

  • Hey, codah - not late at all thanks for your input!

    So I thought that example was just what I was looking for, however if you put any kind of pattern on that green square and drag it out, you'll see it's still dragging from underneath, is there no way to bring it to the front so it has the effect of popping out of the original sprite, seems everything i try just makes it come from underneath O_o

    Is there a reason that won't work for you?

    edit: how about this. Sorry I'm pretty rusty.

    https://www.dropbox.com/s/nxc1fadm55ugp4t/drag_from_sprite_top.capx?dl=0

  • Hi, bit late to this party but here's a sample I did last year, see if it helps.

    https://www.dropbox.com/s/vuvvvinzqu2b066/drag_from_sprite.capx?dl=0

  • Thanks

  • > Although having to get the user to 'Allow' the camera is annoying.

    >

    > edit: what's happening is that it triggers 4 times, each time retrieving 0 cameras, then the 5th time it retrieves 1 then the 6th time it retrieves both cameras sucessfully. So somehow it seems to need lots of attempts..

    >

    Yip, the permissions is annoying. Wish we could have user select it via options or something an have it by pass that pop up.

    Might actually be a deal-breaker for my app, I can imagine users wondering why other camera apps don't make them do that every time...

    Do you, or anyone, have knowledge of any 3rd party camera plugins? I found one that it seems it doesn't work and is unsupported, and anyway it's for CocoonJS.

    https://www.scirra.com/forum/plugin-mobile-camera-cocoonjs_t109624

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I use it on my phone (android). The issue, is, sorry been awhile, is the source. Your phone generally has 2 camera's. You have to select the correct one.

    Um, I think it is called request camera, then select source 0 as front camera, well that is what I did.

    I made a small handheld mirror for my sister in-law so she could put on makeup.

    haha nice Thanks for responding. Yeah I got the whole process but I was wondering why there are so many triggers. Anyway I've since got it working on my phone to the point where I evaluate the front/back cameras and take a photo so I guess that's good! Although having to get the user to 'Allow' the camera is annoying.

    edit: what's happening is that it triggers 4 times, each time retrieving 0 cameras, then the 5th time it retrieves 1 then the 6th time it retrieves both cameras sucessfully. So somehow it seems to need lots of attempts..

  • Is UserMedia usable on Android or only meant for webcams? The only examples are for webcam. I've done some simple test code and run on Android, and for starters I get multiple "On retrieved media sources" triggers for a single call of "Get media devices". I would've expected one. Thanks for any help.

  • Hi codah

    you have anything? D:

    ineed grab information weather too

    no..

  • Couple of things. You have a local variable which will be reset immediately (i.e. next tick). Also your log messages in both functions are identical which might cause confusion when reading logs. Plus we can't see other things, like how you are calling the functions, the log messages themselves, etc.

    edit: not to mention you don't need 2 functions to do this, unless this is just experimenting

  • (0,2) are 3 frames 0,1,2.

    (0,1) is correct.

    That's what I thought, but the manual says it doesn't include the upper number.

    random(a, b)

    Generate a random float between a and b, including a but not including b.

    So the manual must be wrong.

  • Have you set animation speed to zero?

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies