arturosanz's Forum Posts

  • The loop is because I needed "loopindex" to upadte Card.Values based on an Array object items values CardList.At(loopindex(""),1). But you are right, I could use Card.IID instead of loopindex so that Card.Value is CardList.At(Card.IID-2,1) and forget the loop.

  • I've changed "Wait for previous action" for "Wait 0". As far as a I see, they both do the same thing allowing for all the spawned instances to be created, but anyway, I did it. At the end of event 1 all the required instances are created without troubles.

    I've also changed the Pick event for just Card.Index >= 0 but it doesn't pick any instance. In fact, this was the first thing I did before trying out the Pick conditions. But the only Pick condition that seems to work is Pick All.

    This doesn't pick anything =>

    C3 Project modified => jmp.sh/aOGSGEu

  • Hi,

    I'm having trouble selecting a subgroup of an object's instances. For some reason I don't understand both Pick by Comparison and Pick by Evaluate don't return any results. The only condition that returns results is Pick All. What am I doing wrong?

    This doesn't work =>

    This works =>

    Here is the C3 project => jmp.sh/NO8OEmW

    Best!

  • Take a snapshot of the canvas with the User Media plugin

  • You can also set the period offset property to start the cycle half away the sine wave. Set cycle position action lets you change period offset property in runtime if you need to. https://www.scirra.com/manual/103/sine

  • Effects do not change the original image loaded. They just change what you see on the screen. A possible solution would be to take a snapshot of the canvas.

    (1) scirra.com/manual/125/system-actions

    (2) scirra.com/manual/144/user-media

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is an old issue, but still I didn't find a solution. It looks like User Media pluging is supposed to be used only in browsers but not in mobile devices native apps. There are cordova plugins (Cranberrygame, etc) that let access device's camera, but they all prompt the user to take photo or video manually. However, I need to capture images without user intervention (except maybe to give permission to access the camera just once). The way UserMedia plugin does it is good for me, but sadly, I can't use it without a browser (((( Any ideas?

  • RyoHazuki how did you solve the problem? I need to take snapshots from mobile device back camera regularly (4 times per second) like I would do with the User Media plugin action "Snapshot". However, User Media cannot access mobile device camera from a native application (cordova). Cranberrygame cordova plugins can access mobile device camera, but show the standard photo capture prompting the user to take the photo manually. I need to take photos automatically without user input (except maybe the permission to acccess the camera the first time the app is used. How can I do this? Do you know any plugin which does the same as User Media "snapshot" action does?

  • It's not just a TTS problem with User Media plugin. The entire User Media plugin doesn't work when you export to cordova, and it's not able to access mobile device camera, mic, etc... from native apps.

  • Thanks !

  • Maybe a reasonable workaround would be to "ignore" WindowHeight, and just estimate maximum percentage of the screen covered by the OSK in all devices. Let's say you do some research, and you discover that the OSK never covers more than 45% of the screen in any device. It is only an estimation, but maybe it's enough. Depending on the location of the input field on the screen, you decide how much scrolling you need, always assuming the maximum % of OSK's screen coverage you've estimated.

  • It would be awesome to improve the plugin by adding a fade in when starting the streaming and a fade out when stopping. Is it difficult to adapt the plugin to include a parameter for the fade in / out timing?

  • We are looking for a C2 developer located in Madrid (Spain). Spanish or English speaking. We use C2 to develop some mobile apps but not games necessarily. If anyone knows about somebody who could be interested, please contact me at

  • Problem Description

    When adding a user media object, the properties panel in the editor doesn't show any "properties" section like in all other plugins. At least the property "Initial Visibility" should be available, because a "Set visibility" action exsists for user media object instances.

    Attach a Capx

    https://www.dropbox.com/sh/ijuqqnhdvm37 ... Bezqa?dl=0

    Description of Capx

    It does nothing. It just has a user media object added to the default layout.

    Steps to Reproduce Bug

    • Add a user media objet to any layout
    • Click the user media object to view the properties panel
    • The last section of the properties panel is "containers" as opposed to "properties"

    Observed Result

    There is no way to set the initial visibility of any user media object, so you are forced to add a "Set visible" action "On start of layout" Event

    Expected Result

    I would expect to see a properties section on the bottom of the properties panel with at least the "initial Visibility" property like in all other plugins

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • Edge: (YES)

    Operating System and Service Pack

    Windows10 Pro (64-bit)

    Construct 2 Version ID

    r221 (64-bit)

  • For some reason, when running html5 applications in mobile devices' browsers, the UserMedia plugin always answers NO to "Supports user media" condition. It doesn't matter which browser you use, the condition is always false, so it seems "impossible" to use UserMedia features in mobile devices.

    However, this can be solved by exporting the project as a native app with cordova. If you do so, the UserMedia works well.

    If you just want to record the whole screen, there is another alternative to UserMedia. You could use the Snapshot Canvas system action https://www.scirra.com/manual/125/system-actions capturing a screen shot every 0.X seconds.