0 Favourites

[Plugins] Pode HTML Pack

  • * update by zenox98

    Pode's addons (not examples) can be found on GitHub HERE: https://github.com/Pseudopode/construct2_plugins_behaviors

    ______________________________________________________________________

    Update v1.42October 11 : check at the end of this post for new versions and bugfixes.

    This new build allows to set the "scrolling" property to "Auto | Yes | No"

    Update v1.41October 11 : check at the end of this post for new versions and bugfixes.

    This new build allows to set the "scrolling" property to "Auto | Yes | No"

    Update July 17 : check at the end of this post for new versions and bugfixes

    With the iframe, you can embed a webappp made with C2 inside another webapp made with C2 !

    The original HTML Pack is from JesseJoh, and can be found here : .

    I originally added some modifications (and bugs) to his creation, since he's overworked.

    Since I'm still using them, and adding functionnalities, I think the best is to start a new thread, this one, where I'm going to put the midifications I'm doing.

    The first one is HTML Iframe.

    You can rotate the iframe, and the "OnLoaded" trigger now works correctly. It only triggers when the site is effectively loaded !

    The demo :

    The plugin :

    The .capx :

    ---

    Update v1.3 (04/28/2012) :

    Quick update for bugfixes. Rotating the iframe should also work on IE now (recent build, I don't know if its > IE9 or IE > 10).

    The CSS you enter inside the IDE is now correctly set at runtime ! (*nudges newt*).

    The plugin :

    _____________________________________________________________

    The second element of the pack is Div.

    You can set the style & the content, and properly rotate it if you want.

    The demo :

    The plugin :

    The .capx :

    _____________________________________________________________

    Update v1.4 (16/07/2012) :

    New version for iframe, div and img !

    The 'glitch' bug is now fixed.

    You can also now set focus on those three items !

    That means that when you load an iframe inside C2, the controls inside the iframe are working straight away !

    As a demo, I have embedded one of C2's demo inside an iframe, and as you can see, as soon as the page is loaded you can move the player without clicking inside the iframe !

    Demo :

    .zips :

    The .capx :

    You can also load <img> :

    _____________________________________________________________

    Update v1.41 (11/10/2012) :

    New version for iframe.

    This new build allows to set the "scrolling" property to "Auto | Yes | No".

    With, "No", you won't have any scrollbar. With "Yes", scrollbars are always there. With "Auto", scrollbars are there when the content is bigger that the iframe viewport.

    .zips :

    _______________________________________________________________

    Update v1.42October 11 :

    new version for iframe.

    Here's a new build (v1.42) of the iframe plugin, with a change to the way it deals with "current URL".

    You can now retrieve the current URL at edit time and runtime.

    The plugin :

    The demo :

    The .capx : 12:29:11

  • Anyway to get rid of borders without having to resort to css?

    Html5 has some new calls for it, but they aren't implemented yet.

  • newt: no you need to use the CSS style for the moment...

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Alright, well glad you're working on this stuff. It's definitely worth having, and opens up a ton of options.

  • I put google.com in after I hit load and it didnt work? just a blank white box

  • aridale : that's funny, because I made that test too. I can load every site that I can think of, but I can't make google.com display something !

  • Ugotsta : ah yes, I forgot that ! Since it's an <iframe> element, it's not a <object> nor <embed>, so google isn't going to be iframed here...

  • Quick update for bugfixes. Rotating the iframe should also work on IE now (recent build, I don't know if its > IE9 or IE > 10).

    The CSS you enter inside the IDE is now correctly set at runtime ! (*nudges newt*).

    The plugin : http://dl.dropbox.com/u/1412774/IframeDemo2/pode_html_iframe.1.3.zip

  • Thanks Pode!

  • This iframe... does this mean I can run a game in a game?

    WE NEED TO GO DEEPER

  • sqiddster : I didn't try, but I'm pretty sure you are going to have collisions between the two C2's namespace <img src="smileys/smiley2.gif" border="0" align="middle" />...

  • I don't know much about web code and the like, but it would be awesome if you could open up your own game in your own game, forming an increasing loop ;)

    Ah well, no point to that whatsoever ;)

  • squidster, you probably want to go the other direction for that. Like add a script to your html that will load an iframe on a click.

  • Added Div plugin to the first post.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)