graham-s's Recent Forum Activity

  • Not wishing to panic, but PANIC :(

    I test my entry in the emulator, everything is fine.

    I export it to HTML5 and load it to Netlify and I get an error, I host it myself and get the same 'Unhandled Promise Rejection: ReferenceError: Can't find variable: g_axH' error and it won't start.

    I removed the Gamee plugin from the game and it hosted fine, I added it back in with NO events, and get the same error.

    I am using R157 of C3 and Chrome 75.0.3770.100

    How can I get this entry in if I can't get the HTML5 hosted? I'd anticipate that even the zipped file will have the error so it wouldn't be testable.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But then Ashley, Tom and the Scirra staff can't eat this week. If you can never afford the cost, perhaps an alternative like Corona is viable, but its not quite as easy as Construct 3.

    (Or, run Construct 2 and miss out on all the new goodness)

  • Never mind, it appears to be an issue with Safari on the Mac, under Chrome it ran just fine.

    I left the post in case others run into the same issue.

  • I seem to run into an issue where the game runs off to the left of the main window. Its the second time its done it and I can't figure out why.

    My layout and viewport size is 480 x 854

    Thoughts?

  • Per Ashley on this post...

    Mobile web browsers actually prevent any audio playback until the first touch. After that sound can play at any time, but music is still limited to only being started in touches. There is no workaround in the browser, it's a limitation to stop websites annoying you with sound. If you build an APK, it doesn't have the restriction.

    https://www.construct.net/en/forum/construct-3/how-do-i-8/sound-doesnt-play-130580

  • I do believe that this isn't possible, I think that there's a requirement that means a key press (interaction) has to occur before music will play.

    I will see if I can find it documented.

  • One other thing, I can't seem to get any of these to work on an iPhone - do you know if its compatible? Most of my efforts are mobile directed so its a dealbreaker :)

    (Generally I use Chrome for remote previews but it just hangs)

  • Yes, largely it made sense, I especially like the instance variables as I expect I will use them quite extensively.

    I followed the tutorial, and while it worked out the box, I did have one issue that I experienced in my first attempts.

    The window in your tutorial was nicely placed and aligned. Mine wasn't...

    The first image is the placement of the HTML Element, with only the parameters set as instructed in the tutorial.

    When I run it, I get this somewhat runaway window. With research I saw some CSS clip commands, but I'm not sure thats what I want.

    My Output.

  • Fengist - Wow!

    I can't thank you enough for the time you spent both writing the replies and putting up the tutorial. It is truly appreciated. Now I'll go and see what I can absorb from it!

    You rock.

    Thank you

  • Fengist - So after a quick run through I can see that appears that we destroy the canvas to display the elements. This I can live with, assuming that I can just add a function to a button trigger to load a new layout.

    I played around a little, since I have limited HTML/CSS skills, but I've a developer background and I'm a whizz at Google so I'll figure that part out.

    I did get some text to display along with scroll bars. I couldn't get the right width, but I'll work on that too.

    If you have any samples akin to your second screen shot that you can share, it would help a lot since I work a lot better with working examples. I have used some of the supplied ones, but they appeared to hold a lot more information than I needed. If none are available, thats fine, don't ask, don't get :)

    I'll play around more with codepen and scratchpad and see what I can muddle together. Once I have one running, the rest should fall into place quite easily.

    I'm assuming you don't know if I can open another web URL using the HTML Element? I created a lot of data entry points using xCRUD to view/maintain data, but the scroll bars missing on iFrame kill it. I could use the same methodology with the news if I could open the URL.

    ** Edit: I tried adding an iframe to the HTML, but whenever I select the menu option on the phone, it hangs the browser :( - I wanted to check scroll bars didn't work still - This is all I have in there: <iframe src="https://www.fingerscrossed.org/c3/xcnews.php?mode=edit" width="400" height="400"></iframe>

    Thanks again.

  • Thanks folks,

    Fengist, thats so helpful! I figured the HTML Element would do it, but I just didn't get a lot of it. I tried just adding the text, but I think I'll give it another go as it is a 'clean' solution imho.

    Appreciate the info.

  • I am pulling my hair out trying to create a way to scroll some text!

    I have what is a NEWS feed. Each line can be 3 lines of text or 143 lines of text, and 1 or many items. These are held in a SQL database which I read in.

    • I have tried loading an iFrame but while it is ALMOST perfect, for some inexplicable reason, iFrame doesn't support scroll bars! That would have been perfect otherwise. So iFrame can't be used.
    • Text box was a close second but they don't support scroll bars either (directly)
    • Sprite Font also doesn't allow scrolling. I can create a tall object but scrolling it I think could be tricky based on varied lengths.
    • HTML Elements looked promising, but I'll confess I couldn't figure out how to relatively easily use it.

    Any input?

graham-s's avatar

graham-s

Member since 24 Jan, 2018

Twitter
graham-s has 1 followers

Trophy Case

  • 6-Year Club
  • Popular Game One of your games has over 1,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

9/44
How to earn trophies