jan2000's Forum Posts

  • Hi jasmattkrz

    No it doesn't have to run on Construct 2 preview server. You could export for HTML5 and run it locally on i.e. an XAMPP server - or host it on a remote server. Thanx for the kind words BTW! And let us know of any questions.

    It's a good idea The electronics are actually really simple (and cheap). $3.88 for a standard Arduino Uno http://m.ebay.com/itm/NEW-UNO-R3-ATmega328P-CH340-Mini-USB-Board-for-Compatible-Arduino-WL-/161883302204 - to use with any button and a 10K resistor wired like this https://i.stack.imgur.com/9Bk0F.png

  • Problem Description

    External URLs to .mp4-files either don't play or give javascript errors.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/315826/video-error.capx

    Description of Capx

    Click "Load" to set H.264 source in the Video plugin to the external .mp4-file. Click "Play" to play video.

    Steps to Reproduce Bug

    • Click "Load"
    • Click "Play"

    Observed Result

    Desktop:

    • In IE11: Only the sound plays.
    • In Chrome: Nothing happens. The console logs this error: "video_plugin.js:113 Uncaught (in promise) DOMException: The element has no supported sources."
    • In Edge: Nothing happens

    Mobile:

    Expected Result

    The video should just play. The file sits on my own server with CORS headers

    Affected Browsers

    • Chrome - desktop: (YES)
    • Chrome - mobile: (YES)
    • Internet Explorer: (YES)
    • Microsoft Edge: (YES)
    • Safari - mobile: (NO)

    Operating System and Service Pack

    Desktop: Microsoft Windows 10 Home

    Mobile: iOS 10.1.1

    Construct 2 Version ID

    239.

  • It's not a codec issue. If I include the excact same .mp4-file in the project, it plays fine on desctop.

  • Problem Description

    In the "Set source" action in the Video plugin I want to use an external URL to a .mp4 video file. The file sits on my own server with CORS headers. When I preview on my mobile phone, it works - I can play the video. But the same preview on desktop gives this console error:

    video_plugin.js:113 Uncaught (in promise) DOMException: The element has no supported sources.

    Operating System and browser

    I am testing in Chrome on Windows10. And in Chrome on iOS.

    Construct 2 Version ID

    Version 239.

  • Hi isasaurio

    Yes you can! Sounds like a fun idea

  • You are right! After a long time it gets a lot better. Thank you!

    Have you tried it on images?

  • I can't get this to work. Have tried the simplest training I could imagine: One input (random either "a" or "b") and two outputs (either "a" or "b"). Match between input and output is rewarded with 10, mismatch is punished with -10. After 20 minutes of "training" the output is still completely random.. Am I doing it wrong? fundation2000

  • Yes - here is the tutorial: https://www.dropbox.com/s/xy2xowzige72v56/Tutorial2.pdf

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    How does Construct 2 interface with the Arduino? Bluetooth? Wifi?

    This plugin looks very promising!

    Hi jasmattkrz

    The Arduino has to be connected to a COM-port (via USB) on a computer running the Construct 2 page. Then - if you wish - other computers or mobile devices can also access it via the local wifi network.

    Hope that makes sense.

    BR, Jan

  • FYI: We have now made an Arduino plugin for Construct 2

    https://www.scirra.com/store/game-makin ... lugin-1993

  • Hi delgado

    We have updated our FAQ with this. Please let us know if you have any more questions.

  • Arduino plugin — Now for sale in the Scirra Store!

    https://www.scirra.com/store/game-making-tools/arduino-plugin-1993

    <p>Control Arduinos with Construct 2. With this plugin you can access the input and output pins of any Arduino compatible board to create games and applications that interface with the physical world.</p><p>How about games that interact with desk lamps, fans, curtains or maybe aim lasers - or why not water gun turrets? Or games that you control with potentiometers, sliders, your proximity, heart rate or whatever sensors available? </p><p>The Arduino plugin lets you set all digital output pins (high/low), PWM pins for analog output (eg. to control servos or dim light), and read all digital and analog input pins - on any Arduino compatible microcontroller connected to your USB-port.</p><p>No Arduino programming skills required. Just upload the included Arduino sketch, run the included server program locally on your computer - and from now on all is done with Construct 2.</p><p>You can also use this plugin on mobile devices. Just make sure they are connected to the same network as the computer plugged to the Arduino.</p>

    Use this topic to leave comments, ask questions and talk about Arduino plugin

  • Same problem here - on windows

  • jan2000 and ,

    You can show examples for apps (stctr: Greetings Easter!) with cordova plugins probably. (which shows c2 can make apps in many way with the help of cordova).

    i.e show how c2 can help people to make apps (solely app-development) by c2 (c2 cordova plugin).

    Yes - I have made theese for iOS with a LOT of cranberrygame plugins:

    Beer Captain: Social drinking game (uses camera, UnityAds, powermanagement, toast, local notification, status bar, screen orientation and social sharing) https://itunes.apple.com/dk/app/beer-captain-free-drinking/id1005236470?mt=8

    Tournament Creator (uses admob and social sharing) https://itunes.apple.com/dk/app/tournament-creator/id944384262?mt=8

  • Ashley

    I agree with volcank (and many others) on this one: I think you should either make cranberrygame plugins part of the C2-package - or find a way to offer them as a supported separate purchase. For some of us app-development is our sole purpose with using C2, and for that these native mobile features are so crucial. Please, please do something about this!