NRABrazil's Forum Posts

  • Hi Kyatric,

    Thanks for your suggestion, is a good option, mas how the text is put over everything in the screen, I can't mask it to scrolling the text in a window above something in the screen.

    In my option I am trying to find the "wrap" point in a text line to copy this line to a "one line text box", and the next wrapped line in a new "one line text box" and so...

    So that to scroll i need to interchange the content of the "one line text box"s.

    The big trouble is do the "text wrap" right.

  • Hi,

    I am having a great amount of work, trying to do a text scroll trick with a text box. Someone knows I simple trick to do this?

    Thanks

  • IMHO, I think C2 is a great tool for those, like me, who knows the logic behind software production, but did not falls in love with programming languages. Instead, we invested more in graphic appeal and gameplay. So ,the C2 current limits do not hinder the evolution of my work and my personal satisfaction with their development.

  • Hi,

    I think I saw this question before, but I can not find it now!

    I want to use an C2 app I did, from a disk. It works, but when starting there are a warning message that I do not want. Can I disable it?

    Thanks

  • hi,

    Someone knows a way to count how many lines there are in a textbox? Because I want to vertical align the text inside the textbox.

    Thanks.

  • Thanks

  • Hi Rex,

    I don't understand what you said about using double quotes for comma in a string. Please do you has a sample?

    Thanks

  • I tried that but do not worked I had to reinstall the old one.

  • Hey,

    I have a black screen in all "tiledbackground" objects of my project, when I install the new r68! I thought is because their images are 8 bits png, so, I convert then to 24 bits. But do not worked. I had to reinstall the old version.

    My PC is a HP Pavilion i7 with a Geforce 230 GPU, and it updates alone.

    Any suggestion?

  • Yeah Ashley, works like a charm, excuse my fault in not read ALL the functions.

  • Thanks Pole and Ashley, I will try here.

  • Hi,

    I am converting for HTML5, with C2, a game I did with Corona for IOS/Android. But I used the acelerometer to control the character. I found two samples of HTML pages with scripts which use the acelerometer, but how I am a beginner with HTML code, I ask if somebody can see it and forward me how could I use the returned x and y variables in C2.

    Blog Topic

    Link 1

    P.S: You can see the code behind the pages with ctrl+U in Chrome, even if it can not work in your device. Anyway I am attaching the second code, the simplest one, below.

    <!DOCTYPE html>  
     <html>  
     <head>  
     <title>Mobile Safari HTML5 Accelerometer Test</title> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
     <meta name="viewport" content="width=device-width,user-scalable=no" />  
     
     
     <style>  
     body { 
     background-color: black; 
     color: white; 
     font-family: Helvetica, Verdana, Sans Serif; 
     font-size: 10px; 
     } 
      
     #no { 
     display: none;  
     } 
      
     #ball { 
     width: 20px; 
     height: 20px; 
     border-radius: 10px; 
    [ul]
    	[li]webkit-radius: 10px;[/li]
    [/ul] background-color: red; 
     position:absolute; 
     top: 0px; 
     left: 0px; 
     } 
     </style>  
     
     
     <script>  
     // Position Variables 
     var x = 0; 
     var y = 0; 
      
     // Speed - Velocity 
     var vx = 0; 
     var vy = 0; 
      
     // Acceleration 
     var ax = 0; 
     var ay = 0; 
      
     var delay = 10; 
     var vMultiplier = 0.01; 
      
     window.onload = function() { 
     if (window.DeviceMotionEvent==undefined) { 
     document.getElementById("no").style.display="block"; 
     document.getElementById("yes").style.display="none"; 
      
     } else { 
     window.ondevicemotion = function(event) { 
      
     ax = event.accelerationIncludingGravity.x; 
     ay = event.accelerationIncludingGravity.y; 
     } 
      
     setInterval(function() { 
     vy = vy + -(ay); 
     vx = vx + ax; 
      
     var ball = document.getElementById("ball"); 
     y = parseInt(y + vy * vMultiplier); 
     x = parseInt(x + vx * vMultiplier); 
      
     if (x<0) { x = 0; vx = 0; } 
     if (y<0) { y = 0; vy = 0; } 
     if (x>document.documentElement.clientWidth-20) { x = document.documentElement.clientWidth-20; vx = 0; } 
     if (y>document.documentElement.clientHeight-20) { y = document.documentElement.clientHeight-20; vy = 0; } 
      
     ball.style.top = y + "px"; 
     ball.style.left = x + "px"; 
     document.getElementById("pos").innerHTML = "x=" + x + "<br />y=" + y; 
     }, delay); 
     }  
     }; 
     </script>  
     
     
     </head>  
      
     <body>  
     <div id="content">  
     <h1>Move the Ball</h1>  
     <div id="yes">  
     <p>Tilt your device to move the ball. This sample is using Device Orientation and Motion API compatible with iOS since 4.2</p>  
     <p>Mantain your device in portrait orientation for better results (you can lock it)</p>  
     <div id="pos">x=0<br />y=0</div> 
     <div id="ball"></div>  
     </div>  
     <div id="no">  
     Your browser does not support Device Orientation and Motion API. Try this sample with iPhone, iPod or iPad with iOS 4.2+.  
     </div>  
     </div>  
     </body>  
     </html>  
    
  • Try Construct 3

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

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

    I will send your report to the webmaster of my client.

  • Hey I forgot to put the link to the webapp, to you can see it "in loco".

  • Hi,

    I'm new here and i did one webapp to a client with C2. Until now everything is working, but my client reported an strange thing, which is challenging me. When opened in Mozilla there are some letters, see the picture, which came from nowhere! If I open the code in mozilla they are before the start of page, like you can see in this picture.

    Somebody knows why this happens?

    Thanks