kmsravindra's Forum Posts

  • maordany, AFAIK, If you do not want to connect to the public server, then you will have to buy both C2 license as well as the multiplayer signalling server from scirra store for your personal use. Then you can host/deploy the multiplayer signalling server on your network...I think the multiplayer signalling server itself doesn't pose any limitations on number of users but your host computer bandwidth limitations might restrict the simultaneous users to probably less than 30 or so...

  • -@maordany,

    -first of all you are using same game-instance, room and game_name as in tutorial...So its very much possible that someone trying out the same tutorial is playing with you So change the room_name to something unique for your game

    • You can very much replace laser with bullets but you may have to give them a bullet behavior, velocity, angle etc., as parameters that are read at the peer as well...
    • I didnt understand what you meant by shooting stops when hitting the wall...Do you want the shooting to stop or shooting should continue after hitting the wall?

    I might be able to help you with this project, but multiplayer game is complex and time taking...So if you are willing, I can spend time on it. Sent you a PM.

  • Thanks R0J0hound for making it clear to me.

    , That is perfect! It works with the previous version of the plugin as well. I will see if I can add the ability to move the light source by touch rather than auto revolution. Great! thank you.

  • Thanks very much I used that technique earlier. The way I did was - Have 2 semicircle sprites (one dark and another one for lighted portion) and accordingly scale the widths of the semicircle sprites depending on the angle of the light source. I hope this is what you meant. This works but the effect wasn't all that realistic. If you meant a different approach then please let me know.

    I was wondering if using one of the approaches below might give it a more realistic effect -

    1. Use C2 inbuilt shadow caster/Shadow light behavior OR

    2. Paster plugin and textured quads

    3. Q3D plugin

  • clockworkmonster, as Ashley mentioned, Cordova is an open source library and can be used for free.

  • Thanks ASHLEY. "Export for PhoneGap" works without issues for Cordova

  • I am trying to get a light and shadow effect in 3D ( something similar to shadows using Paster plugin like in this post ...) .

    Please see the image of what I am trying to achieve...

    As you could see from the image, the light source lits up the object in the middle ( please visualize this as a 3D system). Now when I move the light source around the middle object, the lighted / shadow part of the middle object should change accordingly in this view. May be something to do with textured quads using R0J0hound 's Paster plugin ? May be R0J0hound or could help as to how I can go about doing this? Though I have purchased Q3D plugin, at the moment it looks tough for me to accomplish the same using Q3D plugin...If someone has ideas as to how this can be done using Q3D plugin, please let me know...I have done this pretty easily in blender3D tool...Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • clockworkmonster, I am using phonegap cordova download directly w/o any Intel XDK....Its straightforward and direct to use inside Mac with Xcode .

  • Wanted to share that Cordova works very well for me on iOS for all variants of iPhone / iPad...Bye bye Ejecta.

  • I get an error alert saying "Exported games do not work etc.,..." when trying to run the index.html inside cordova. Inside index.html I see the below code was newly added causing this. Removing this code removed the alert as well but runs fine inside Corodova...Is it expected to be removed like the way I did when running inside Cordova? OR am I doing something wrong?

    -------

    <script>

    // Issue a warning if trying to preview an exported project on disk.

    (function(){

    // Check for running exported on file protocol

    if (window.location.protocol.substr(0, 4) === "file")

    {

    alert("Exported games won't work until you upload them. (When running on the file:/// protocol, browsers block many features from working for security reasons.)");

    }

    })();

    </script>

  • Hi yousicc, I did try with Ejecta but there seems to be several issues for the same export to work on different iPhones. I am using Ejecta for iPad app ( as it does not have too many variants for now)....But whenever aspect ratios change, Ejecta doesnt seem to work fine especially with screen scaling issues. I think I know a way to make the Cordova work for iOS. If I am successful, then I would let you know.

  • Appreciate any link / pointer to a good tutorial on exporting to iOS using Cordova.

    Thanks

  • Thanks ASHLEY. Appreciate your response. I didn't test it using r189. Will do that and let you know by my tomorrow.

    wrt Cordova, I appreciate any pointer to a good tutorial that I can follow to export to iOS. Thanks a lot.

  • [attachment=0:1who22gj][/attachment:1who22gj]Problem Description

    C2 game of aspect ratio 16:9 ( window size used in C2 is - 848 by 477 matching that of iPhone 5/6/6+) made in

    landscape mode. When this game is exported using Ejecta, then on iPhone5 and iPhone6 the app doesn't scale up full screen. There is a big black border all round the app. Please see the attached screenshots wherein I have attached the simulator screenshots from iPhone5, iPhone6 and iPhone6 plus. iPhone5,IPhone6 and iPhone 6 plus - all of them have an aspect ratio of 16:9. I have made my C2 file also in the same aspect ratio. However, as could be observed from the screenshots - In iPhone 5 and iPhone 6, the app somehow doesn't scale up to full screen. Only in iPhone 6 plus it does strangely!

    Attach a Capx

    Any sample capx file with 848 by 477 ( or any 16:9) aspect ratio window size. It doesn't matter if WebGL is ON or OFF.

    Description of Capx

    Any sample capx file with 848 by 477 ( or any 16:9) aspect ratio window size. It doesn't matter if WebGL is ON or OFF.

    Steps to Reproduce Bug

    • Export the capx file for Ejecta
    • Run the file in Xcode simulator
    • Step 3 etc.

    Observed Result

    Please see the attached screenshots where black border appears for iPhone 5 and iPhone 6. It does not appear on iPhone 6 plus

    Expected Result

    The app should have filled the screen in all cases.

    Affected Browsers

    • iPhone 5, iPhone 6 Operating System and Service Pack iOS Construct 2 Version ID r184 stable
  • Thanks ASHLEY. Here is the link to the bug report created -

    The .capx content doesnt matter much, so I created a very basic one with 4:3 aspect ratio window size matching that of iPad that gives an issue for iPhone export.