graham-s's Forum Posts

  • 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?

  • So, on Apple handhelds we can't display a web page with scrolling? Which is like most of them..

    If this is true, a wtf springs to mind! Thats a lot of an audience that can't participate!

    Is there any way with C3 that you can display a web page where a person can scroll through a page without leaving the main C3 app?

    • None of the old ports from C2 came to C3.
    • Yes, I've searched the forums, frequently and relentlessly without a working solution.
    • I've tried to port it myself, but that's beyond my skillsets (and no it didn't work)
    • I did try to use it in an iFrame but that wouldn't work either.
    • *Edit* I know I can open a URL with the browser object, but then I leave my UI experience.

    I am aware that there's a potential cost and an API key is needed. I have the API key, and the costs only associate after a certain number of hits. I'm fine with this.

    Anybody been successful in getting working maps?

    Thanks

    Tagged:

  • AllanR, Thank you - I will check it out.

    I always find it ironic that I can rapidly move through development and hit a brick wall on occasion! Luckily its folks on these forums that at least get me going again.

    Thanks for the project too, appreciate the time and effort!

    Graham

  • OK, thanks again for your input.

    It's a pernickety little beast ain't it! I also found that if you have a sprite in the container that you haven't used, you also get unpredictable results...

    Lessons learned!

  • OK, I think some of this is a bug. I created a sample project and it corrupts the sprites as soon as I use an instance sprite.

    I'll file it as a bug and see what happens.

    Here's the sample

    https://www.dropbox.com/s/eafid7y6xdq697v/Sample%20Tree.c3p?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • As an addendum weird one, in layout mode the pieces are selected all over the place.

    I even removed all the other trees, created the container on one, then recreated the trees with the same results.

  • OK, ran into a snag

    It all looks fine in the layout editor, but when I run it, everything goes to hell.

    The left pic is layout, the right is runtime.

    Other than the containers, I don't do any sprite placement whatsoever.

    Thoughts?

  • Got it, thank you.

    Removed the families.

    Added all the tree sprites to a container on the bottom of the tree.

    On Collision with the tree bottom.

    Enable sine on sprite1

    Enable sine on sprite2

    Enable sine on sprite3... etc

    Cheers.

  • OK, I admit defeat, after another 4 hours trying containers, families, hidden placeholders I still can't figure it out :(

    At the tree trunk I added a hidden sprite so I could add it to the family/container and then shake it with the others. It triggers, but doesn't use the family sine behaviour, just its own. I'm not sure if I'm supposed to pic the family sprites but not sure how to.

    (In case someone asks, I can't post the project since it has licensed material in it.) I might try and put together another sample however.