COGames's Forum Posts

  • I'm looking for something like this:

    While A is true, or B is true > do some event

    I can see how it would work with A and B being true, but not one OR the other.

    I did try using "|" and "^" but it didn't work.

  • I have apps in Apple's App store that are educational in nature, and I'm shocked by how little I sell. Sometimes when I make them free they are downloaded by the thousands, but on other days it's just a couple (free). Do they get on a list on some days (hence the massive download)?

    I know people expect free apps now, but I didn't think it would be so bad. My other thought is that my apps are lost in the millions in the store, and are not even being seen.

    Anyone have experience in this? Would Android be better?

  • I've gotten the same message, but it works once I have the icons in the directory. Double check the path that XDK has for your project and make sure the icons are definitely in that directory. I would also restart XDK.

  • Thanks - Correncec! IT totally worked! You're a genius!!!

    One thing I wasn't sure about:

    In Step 5, there are two places of: "curwidth" and "curheight", do both get replaced? The answer is: Yes they do.

    [quote:fy6ide7y] if (this.lastWindowWidth !== curwidth || this.lastWindowHeight !== curheight)

    {

    this["setSize"](curwidth, curheight);

    }

    Replace curwidth with window_innerWidth()

    Replace curheight with window_innerHeight()

    Also - I just installed the latest XDK and the Intel XDK app preview on my devices. What a time saver in testing! Now, all you have to do is export using Cordova, select the "test" tab in XDK, then push your files, and (in the app on your device) hit the camera, aim at the QR code and, BAM!!!, there it is on the device!

  • UGH, I didn't see that. Thanks so much - it works

  • I tried it, and it didn't work. I increased the size and tried to move it. This resulted is a larger view, with things being cut out (so apple shrunk and then whatever didn't fit got cut).

    The strange thing is that the layout stays put in the Safari web view, but when you save it to homepage it does this (it also does this when exporting with Cordova and using Intel XDK). So, when treated like an app, apple shrinks the view when the keyboard comes up. From what I gather from the web, Apple didn't always do this and the developer had to make sure any text box was in a position that it wouldn't be covered by the keyboard. But some IOS update changed that. Also, it seems that Android also does this shrinking thing (frustrating many).

  • Thanks so much, blackhornet

    I can't seem to find "pick all". I found "pick highest/lowest", "pick by unique ID", "pick nearest/furthest", and "pick top/bottom".

  • I have scores that float upward when an answer is chosen. I use one text object (floatingScore), but there can be several scores floating up at one time.

    When the game is over, I destoy floatingScore, but all instances continue to float upward. Is there a way to destroy all of them at one time?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When I use a textbox on an iPad or iPhone, once the user touches the box for input, the soft keyboard appears, and pushes up the layout out of view. Once something is typed, the layout appears (shrunk to fit) above the keyboard (on the iPhone the text inputted is so small that it's hardly readable since everything is shrunk).

    How can one make it so the layout stays put when the keyboard appears?

    I searched the internet, and it seems that this is a problem that hasn't been fixed. It has something to do with phonegap's "keyboardShrinksView" line in the config file.

    From phonegap:

    "KeyboardShrinksView (boolean, defaults to false) - set to true to shrink the WebView when the keyboard comes up. The WebView shrinks instead of the viewport shrinking and the page scrollable. This applies to apps that position their elements relative to the bottom of the WebView. This is the default behaviour on Android, and makes a lot of sense when building apps as opposed to webpages."

    Anyway I set this in the config.xml file, nothing changes.

  • I just noticed that when my games are on the iPhone6, sometimes events triggered at the end of an audio being played is delayed. I added timers so I can compare PC, iPad and iPhone, and I do see a noticeable delay (2 to 3x sometimes). To fix this, I had to add conditions.

    Anyone else see this? Should I report this as a bug?

  • I know this is an old thread, but I had this "Assertion Failure: drawing instance on wrong layer" and I figure for anyone who has this, maybe this will help. For my situation, I discovered that it was a global sprite that was on layer 2. Then I created a new layout, which only had one layer. That's when I got the error. Simply added two more layers to this new layout and it was fine.

  • b]Problem Description

    The sound gets distorted on both the iPhone 5c & iPhone 6 (this is all I had to test it on). The problem is NOT seen on the iPad 2.

    The sound distortion does not have to be an app, it can be seen as an HTML5 game posted on a site; and this problem will carry over when converted to an app.

    Open up HTML5 game in safari (on an iPhone 6 or 5) and the sound may or may not be distorted (distortion happens more often than not). If you hit refresh it usually clears up. However, if this is saved to the home screen or it's an app you can't refresh and are stuck with the distorted sound. If you close it completely and reopen it, it stays distorted (every time).

    However, if you close the game completely (double click and swipe up), and play another sound file (any sound file will do) then go back and open the game, play the file (in the game) it will not be distorted, and all other sound files will be fine for the remainder of the game. This will happen 100% of the time.

    This leads me to think there's something not being initialized. Also, the file that I played, that fixed the distortion, was a WAV file converted to a M4A file in Construct2 (I copied the M4A file to a link to play it outside the game). So - outside the game it plays fine. Inside the game it is distorted. Once distorted, I can get it undistorted by playing the M4A file from my site (but like I said, any sound file will do).

    I use a lot of voices in my games, so the distortion is very evident. Since I can't specify my games to be iPad only, they're being forced on to handhelds, and I risk getting poor reviews due to this issue.

    ----------------------------------------------------------------------------------

    Attach a Capx

    https://onedrive.live.com/redir?resid=F ... ile%2ccapx

    HTML5 "game" file link to my site: http://yourkidcanread.com/HTML5%20games ... index.html

    Link to M4A file made from a WAV file, brought into Construct2 and converted: http://yourkidcanread.com/m4a_file.html

    This M4A file is used to "reset" the sound to get rid of the distortion. Note that it can be any sound file (like a song) however, this file may provide more clues since it's the exact same file that is in the HTML5 "game", only moved out of the game to a link on my site.

    ----------------------------------------------------------------------------------

    Description of Capx

    This Capx is a simple button that you press, and you will hear a voice for testing purposes.

    Steps to Reproduce Bug

    Open the HTML5 file up on an iPhone 5 or 6. Press the button to hear the voice. It may or may not be distorted (usually it is). If it isn't , completely close it (double clicking and sliding up) and try several more times. In my experience it will happen quickly. Once it goes distorted, it never fixes itself (if you close and reopen).

    Note that if using Safari, you can refresh and it usually fixes itself. However, if you saved to your home-screen you don't have this refresh option, and once it goes distorted you can't get it back (unless you play another sound file - such as music). This is also the case if you made the game into an app.

    Step 1 - Using an iPhone (5 or 6), open the HTML5 game ( http://yourkidcanread.com/HTML5%20games ... index.html ). Press the button to hear the voice. If it's not distorted, completely close it (double click and swipe up) and try again. It usually happens in the first or second try.

    Step 2 - Once the voice is distorted you cannot fix it by closing and reopening. But you can fix it by playing just about anything. For debugging purposes, I used an M4A file that was converted from a WAV file inside Construct2 (I just copied the M4A file from the capx to my site). Close the game completely (double click and swipe up), play this file (here's the link: http://yourkidcanread.com/m4a_file.html).

    Step 3 - After playing the M4A file, go back and reopen the HTML5 file, it will NOT be distorted.

    Observed Result

    iPhone construct 2 games have distorted sounds (very evident when there is a voice talking).

    Expected Result

    Distorted sounds when sounds are played from Construct 2 games on iPhone devices.

    Note - this happens consistently, with every game, and is also fixed every time by playing another file.

    Affected Browsers

    Safari since this is only seen on the iPhone.

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Construct 2 Version ID

    Windows10

    R216

  • It looks like there's a bug in more recent releases of Cordova.

  • I'm using Cordova and then XDK.

    When exporting using Cordova, I select handset only and I can see the Config.xml file contains the line:

    <preference name="target-device" value="handset" />

    However, when I upload to itunes Connect, it indicates that the binary is also for the iPad.

    Is there anything that I can do? I've seen this question here, as well on Stack Overflow, and no one is really giving any answers.

    Do I have to use XCODE (somehow)?

  • Thanks for your reply. I did set the background to black, and the loading layout page only has 2 text objects on it (to display "Loading..."

    and to give the % (with>> round(loadingprogress*100)&"%"). That's very light weight, but it's still happening.

    To make it more clear, I made the loader style to display the %, and now I can see that it loads over 75% before switching to my loading page.

    I can PM you OneDrive link if you'd like to take a look.