COGames's Recent Forum Activity

  • How do I have TTS in IOS app?

    I have it working using the C2 "UserMedia", however it only works on Chrome (not IE or Edge). When I use Intel XDK to test in on the iPad I see that the iPad does not support this. I searched for a pluggin, but I don't see anything that will seem to work.

    Any idea?

  • Here's a way you can structure it. Basically make the while and infinite loop and use the "stop loop" action to stop it.

    +--------------+
    | while        |
    +--------------+
    |  +-----------+
    |  | trueA = 0 | set trueA to 1
    +--|   -or-    | set trueB to 1
       | trueB = 0 | stop loop
       +-----------+[/code:jsiw2xm4]
    

    I tried it, but it is still stuck in the loop. Actually, I don't think it's in the loop since I put debug text there and I never see it. I'm thinking that it's just crashing. Please take a look. This is very strange:

    capx file with your suggestion: https://1drv.ms/u/s!AobC4q3rBlr6ibx9kpuqCadUF285lA

  • I totally had the same problem with IOS on the iPad and iPhone. Upon searching it seemed this was an android issue, not an IOS issue, but something changed and now it is both.

    The good news is there is a fix, I tried it and it worked. Here's a link:

    correncec was nice enough to put step by step instructions, which really saved the day for me

  • I think the 'OR' block doesn't work right with while loops.

    Here's the capx file:

    https://1drv.ms/u/s!AobC4q3rBlr6ibx8L_qw4oTDgur-jw

    A counter is constantly counting up, to show that the program is running. When you hit the blue button, it checks the condition of two flags, for the while loop. On start up the conditions are set so they are not true, and we should not go into the while loop. However, you can see that the counter stops running, so we are in the while loop.

  • You need to use an OR block in your event condition.

    You can right click on the far left margin on the event block and a context menu pops up, and there's an option for adding an OR to the event.

    The other way you can do it, which IMO seems more reliable anyway, is simply to double up your events and have one for each condition;

    While A is true -> do this

    -and another event below-

    While B is true -> do this

    Read more about OR blocks and other advanced features in THIS TUTORIAL

    ~Sol

    When I tried an OR block, I get: While or A is true or B is true.

    And that resulted in an infinite loop, regardless if A or B was true or not.

  • Why would you use a While in this situation ?

    A is true-->do some action

    OR

    B is true

    as long as either A or B is true the action fires so it is basically the same as , While A is true OR B is true

    I want to do the event if one or the other is true. If I check one then do the action, then I change my conditions.

    For example, I want to store a value that is not a repeat in a 3,0 array. I pick a value for 0,0, then I pick a value for 1,0 - but I need check it to make sure it's not equal to the value in 0,0 (easy to do). But then I pick a value for spot 2,0. Now that value can't be equal to the spot in 0,0 or the spot in 1,0.

    If I check 0,0, and its true (the same) then I pick a value that's not the same. BUT it might be the same as spot 1,0. If I find that it is the same as spot 1,0, I can change it so that it isn't, but now it might be equal to the value in 0,0. That's why I want to check it at once.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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).

COGames's avatar

COGames

Member since 20 Dec, 2015

Twitter
COGames has 2 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies