Soul3's Recent Forum Activity

  • Hello

    I want to switch the game from Landscape to portrait at specific moments.

    Choosing "Any" in project properties will allow the user to change orientation however he wants. Choosing "Portrait"/"Landscape" will lock the app to this orientation forever.

    I want to control orientation from the game.

    I have tried almost all combinations of the Browser:Lock/Unlock orientation, but always the above result.

    The game is exported as Android or iOS.

  • Well, how nice! I was missing around and found TileMap:Load from URI. Using a couple of png files, I could change the tilemap frames.

  • Animating tiles sounds nice. Your method looks clever as well, I didn't know you could that!

    Let's hope Construct would support animating tiles in the future; e.g. letting us use frames in the tilemap editor. Otherwise, all our solutions will remain "hacky", in a way.

    Let's say you are going to animate multiple tiles every frame, instead of replacing each tile, wouldn't it be easier to build a JSON string for the whole map in each frame, and use it to replace the whole map every frame?

    Example: TMjsonFrame[0], TMjsonFrame[1],...TMjsonFrame[X] (built at Layout start or hardcoded during design)

    Every Tick: Tilemap = TMjsonFrame[N]; N=(N+1) mod (X+1);

    Also, I think scripting is worth a try, maybe it has easier access to the internals of the tilemap.

    Oh, and speaking of tilemap forloops, here is a suggestion that will make them less painful. It has been 3 years already and still "No status" :'(

    construct3.ideas.aha.io/ideas/C3-I-351

  • If it's not supported, you can easily make your own right-to-left typewriter effect:

    Thank you. More elegant than what I had in mind :)

  • Hello,

    Is there a way to change text direction (right to left) in the Text plugin?

    It would be nice if the Typewriting direction could be controlled as well.

    I am using TextInput for now, with CSS styling (which is pretty handy).

    Thanks.

    Tagged:

  • Ashley Thanks a lot!

    Can I show this camera stream back in construct (without C3's UserMedia)?

    I tried this code:

    if (navigator.mediaDevices.getUserMedia === undefined) {
    	navigator.mediaDevices.getUserMedia = function(constraints) {
    	 var getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
    	 
    	 if (!getUserMedia) {
    		return Promise.reject(new Error('getUserMedia is not implemented in this browser'));
    	 }
    
    	 return new Promise(function(resolve, reject) {
    		getUserMedia.call(navigator, constraints, resolve, reject);
    	 });
    	}
     }
     
     navigator.mediaDevices
    	.getUserMedia({ video: true })
    	.then(function(stream) {
    	 var vid = document.createElement('video');
    	 vid.src = stream;
    	 console.log(vid);
    	})
    	.catch(function(err) {
    	 console.log(err.name + ": " + err.message);
    	}
    );
    

    It asks for permission, and the camera icon shows up, but of course, the video itself doesn't appear. I assumed it would work if I added a <video> to the page body. What's wrong with this approach, please?

  • Hello,

    Is there a way to access the camera through scripting? Either using Construct's UserMedia or by HTML5 (creating a <canvas> element and using WebRTC ..etc)

    Thank you.

    Tagged:

  • Thanks a lot ^_^

    adding wkwebview-engine plugin, then adding "usewkwebview=yes" to the options string did the trick!

  • Hello,

    I have a Cordova app, which is basically an InAppBrowser (a Cordova plugin) that shows a link to my C3 game on my server (HTTPS)

    The InAppBrowser displays normal pages fine, and runs Construct2 games just fine (as far as I tested), but C3 games do not display.

    First the loading screen shows up, but without the Construct logo (loading bar moves fine, but very slow), Then a black screen ..

    My guess is that it is that something prevents loading files and assets.

    Is there something we can do? some attributes or permissions?

    Here is code of our Cordova page:

    <!DOCTYPE html>
    <html>
    <head>
     <meta charset="UTF-8">
     <title>My Game</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
     <link rel="stylesheet" href="../css/bootstrap.min.css">
    </head>
    
    <body>
    <script>
     function CallAddress() {
    var ref = cordova.InAppBrowser.open('https://mylink.com/index.html', '_blank', 'location=yes');
     }
     window.onload = CallAddress;
    </script>
    
    <script type="text/javascript" src="../cordova.js"></script>
    <script type="text/javascript" src="../js/landscape.js"></script>
    </body>
    </html>

    Thanks.

  • Try Construct 3

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

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

    We can't run our HTML5 game on iOS (but runs on Mac)

    Apple broke WebAssembly and are leaving it broken

    [url=

    https://www.construct.net/en/forum/new-topic?ffID=7]iOS 11.2.2 and 11.2.5b6 WebAssembly regression (error or hang)

    Is it fixed yet? Is there a workaround?

    Thanks a lot

    Tagged:

  • Soul3 can you please upload the .c3p,Cheers.

    :) https://ufile.io/wrcij9xs

  • Try this

    https://ufile.io/0meklhpe

    Thanks a lot :)

    When I added a background sprite, the circle showed up. Just moved the background to a separate layer below the layer of circle and square and now all is working :)

Soul3's avatar

Soul3

Member since 7 Apr, 2019

None one is following Soul3 yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies