Congrats2u's Forum Posts

  • Has someone an idea how to avoid scrolling the app out of the screen, if you reach the bottom of your i frame content?

    And:

    Fit the content into the iframe? Currently i got the iframe to work, but the content insde is sliced, so you cant see the whole page...

    (I builded for cordova with the intel sdk for ios - basically its an app for ios)

    Thanks a lot!

  • All

    Has someone an idea how to avoid scrolling the app out of the screen, if you reach the bottom of your i frame content?

    And:

    Fit the content into the iframe? Currently i got the iframe to work, but the content insde is sliced, so you cant see the whole page...

    (I builded for cordova with the intel sdk for ios - basically its an app for ios)

    Thanks a lot!

  • Has someone else the problem that every layout needs to get a new touch input to play the sound? And maybe a solution for this thing?

    Best regards!

  • imhotep22

    The thing is: I build the game with cordova for ios because later there has to be an app. And on the app there is no problem with the focus behaviour.

    So there shouldnt be a porblem with the sounds...

    Everything would work fine, if there wouldnt be this weird thing with disabeling the sounds on layout change.

    Basically it is well explained on this site too:

    https://www.ibm.com/developerworks/web/ ... -ioshtml5/

    But there is always the fact, that you only have to trigger it once - and it will work for the whole project, not only for one layout

  • imhotep22

    I have an intro event sheet. There i have a welcome button and if you click on it an intro will be loaded. After the intro is played it loads directly the main menue.

    In the main menue i have the following event:

    https://ibb.co/jy0H7a

    If iam leaving the main menu i call this event: (to stop this sound)

    https://ibb.co/d1WPna

    And on the new layout i call this event again:

    https://ibb.co/j87m0v

    Basically i call only the Play event, and the stop event (before i used the unload event)

    But every time i want to play a new musik sound i have to touch press the screen. Ashley told me, that this has to happen only once and then the sound should play durring the whole game (also for other sound files)

    So something is wrong...i guess (better i hope)

    Please note: Every sound is playing but you can hear it only when you touch the screen. So i tried out to unmute the sounds right at the beginning - but this made no difference.

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey there!

    This kind of problem is making me really sad. On IOS devices you have to set a touch input on each layout change to play the background music. I builded a ios app with construct2 and cordova and on some layouts i have to play differend music files. But every time there is a new file loaded, you have to trigger it with touching the screen.

    Has someone an idea why? And how to avoid this? Its an app so why the hack is there a behaviour like this? A solution would be awesome!

    Thank you very much!

  • celstrider

    Thank you for your answer. I will check this out. Bud do you know what could be the reason for this? I imported files like construct2 needed. 16 bit wav. files. Is there something i did wrong probably?

  • Is there an actual download link available? I have to include iframe into my app...but im not sure i think its outdated. (On IOS) the whole Html page is loaded....and thats very bad.... so i read, that there is a possability to use the div plugin to solve this....

    so could anyone share a link?

    Thank you very much!

  • Ashley

    Hey Ashley, i got a question about the audio thing. If i have layouts with differend music. And i switch between them and change the music too.

    i use:

    Play "musicB" looping at volume 0 dB("tag")

    and

    Unload "musicA" from Sounds

    as events.

    So thats basically it....but when i switch between the layouts i have to set a touch input again? Didnt you said, that there is only one touch input at the beginning to start and play the music for the entire project. Is there a setting or something to make this thing working?

    (The platform iam on is IOS - (project is builded with cordova))

  • Hello!

    I have some problems with safari. The game runs great on firefox, chrome, ie. But on safari i get sometimes some error messages - and the complete website has to be reloaded. Has someone a hint what i could do right now?

    Is there an expert who could say whats the problem? Im sure it isnt a problem with the project.... but i have to know if there is a possability to avoid the safari crashes. The console doesnt create a error message and in the header i only get the information that there is an issue with the webiste so it has to be reloaded.

    i made a screenshot:

    http://imgur.com/a/f1g9l

    Can someone tell me how i should go on right now? How i could fix this issue or probably there is someone who had the same experience with safari browser issues and knows how to handle this.

    Thank you very much!

  • Nandynho

    this is a really annoying problem.....its always apple which causes some issues - i never have problems with other platforms...

    yea i either dont know how to solve this... i mean there are people with a lot more html5 experience - even for mobile devices. But we have to solve this...so yea... we will see.

    if you need to test your solutions, you can send me your capx. i can test it for you on my ios device. Probably you will set up a lucky shot

    best.

  • Nandynho

    Hello,

    iam trying to use the HTMLIFrame plugin for my project...before i was using the podeiFrame plugin. Both with the same porblem. iam building the project for ios with cordova..... i have to include html websites into the app (to show events, news and other pages, witch are hosted by the customer).

    Both plugins are not working correctly on ios, because i cant set the widht and especialy the height for the iframe.... on the ios devices the height is always as large as the webpage i want to show with the iframe plugin. Is there any possability to customize the iframe plugin?

    I downloaded the plugin from this thread:

    viewtopic.php?f=153&t=149647&hilit=iframe

    (Nandynho post)

    Its very important, and i didnt found a solution, maybe someone has some experience with the HTMLIFrame plugin for IOS Apps.

    There is a further problem:

    If i want to start the build on browser, an error message appears: I made a screenshot from my test scene:

    https://ibb.co/j3nbVk

    it has something to do with this plugin... does anybody has an idea why?

    Thank you very much!

  • Nandynho

    Hello,

    iam trying to use the HTMLIFrame plugin for my project...before i was using the podeiFrame plugin. Both with the same porblem. iam building the project for ios with cordova..... i have to include html websites into the app (to show events, news and other pages, witch are hosted by the customer).

    Both plugins are not working correctly on ios, because i cant set the widht and especialy the height for the iframe.... on the ios devices the height is always as large as the webpage i want to show with the iframe plugin. Is there any possability to customize the iframe plugin?

    I downloaded the plugin from this thread:

    (Nandynho post)

    Its very important, and i didnt found a solution, maybe someone has some experience with the HTMLIFrame plugin for IOS Apps.

    Thank you very much!

  • Hi,

    Android and Web working great.

    BUT:

    I am currently trying to get the Iframe running on mobile IOS. The Problem is the entire iFrame content height is shown. (Although the iFrame Objects Height in Construct is only 500px) When I scroll, the entire game layout is scrolled.

    Any way I can fix this? Is there a way for example to wrap a DIV around the iFrame, to adjust the DIV?

    Thanks in advance!

  • Hello guys!

    I have a question about how to access a jQuery function from my webgame. Let me explain:

    The game is embedded on a website (onescroller). We have differend sections, like school, events, news etc.

    We have a website gui (some buttons in the header) and if youre clicking on them, we fire a jquery function to scroll smoothly down to the coresponding section.

    Now i created a menu with construct2 (some fancy buildings for kids) - basically they should call the same function like the website gui buttons, to scroll smoothly to the right section.

    Currently iam using the function:

    (for events)

    "../../../home.html#events"

    This loads the site complete new and moves directly to the event section but without a smooth "anker" scrolling. Our Website expert told me that i have to embed a jquery function (https://api.jquery.com/position/) into my project.

    Can someone please tell me how i could reach this goal? Or is this basically possible?

    Thank you very much!