Elliott's Recent Forum Activity

  • You'll need it to face the other way. That's sort of just how physics works.

    Though this thread has been solved, I'm just going to chime in by saying that made me laugh so hard that coke came out my nose!

  • Wait you have access to pure HTML? If that's the case just put this above your doctype, absolute first line of code (Theoretically bad practice):

    <iframe id="iframe" src="http://dl.dropbox.com/u/56104169/WebTest/index.html" width="1150" height="300" scrolling="no" frameborder="0" ></iframe>

    And remove the following:

    <div class='navbar section' id='navbar'><div class='widget HTML' id='HTML5'>

    <h2 class='title'>Construct2</h2>

    <div class='widget-content'>

    <div class='clear'></div>

    <span class='widget-item-control'>

    <span class='item-control blog-admin'>

    <a class='quickedit' href='//www.blogger.com/rearrange?blogID=1649094877974200757&widgetType=HTML&widgetId=HTML5&action=editWidget&sectionId=navbar' onclick='return _WidgetManager._PopupConfig(document.getElementById("HTML5"));' target='configHTML5' title='Edit'>

    <img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>

    </a>

    </span>

    </span>

    <div class='clear'></div>

    </div>

    The CSS will do all the positioning you need.

  • Okay, wishful thinking but try:

    #layout .region-inner {

            min-width: 0;

            width: auto;

          }

          ]]>

        </b:template-skin>

    #iframe {

        width: 1150px;

        height: 300px;

        margin: 0 auto;

        background-color: #777;

        display:block;

    }

    </head>

  • Bummer!

    Incidentally the effect you mentioned is what happens to my work when I remove the widget container, I assume that talks to whatever Blogger uses to format it's pages.

    Could you dump all the code as it appears in Blogger? It might make more sense in context.

    If Blogger has a HTML area where you can put pure HTML, I'd use one of those; but from my understanding that's what we were already doing?

  • Hmmm I'm unfamilar with blogger, I'd guess sticking it after the closed brace would work.

    Here's my source:

    <img src="http://i.imgur.com/v1sgOcg.png" border="0" />

    The iframe HTML exists within your existing block, yes.

    I'd try:

    #layout .region-inner {

            min-width: 0;

            width: auto;

          }

    #iframe {

        width: 1150px;

        height: 300px;

        margin: 0 auto;

        background-color: #777;

        display:block;

    }

          ]]>

        </b:template-skin>

    </head>

  • No problem!

    CSS:

    #iframe {

        width: 1150px;

        height: 300px;

        margin: 0 auto;

        background-color: #777;

        display:block;

    HTML:

    <iframe id="iframe" src="http://dl.dropbox.com/u/56104169/WebTest/index.html" width="1150" height="300" scrolling="no" frameborder="0" ></iframe>

    Positioning is exactly the same as the original, the CSS goes at the bottom below layout .region-inner and the HTML goes between <div class='widget-content'> and <div class='clear'></div>

    I'm unsure how blogger works, if there's a specific problem I can have a look at screenshots :)

    The main difference is display:block which allows the iframe to be centered like a div, normally iframes align to the left (The i in iframe stands for inline)

  • Global variables!

    Positioning is trickier, you might want to look at

    scirra.com/manual/82/includes

  • Okay finally got it working:

    ursidacom.co.uk/construct-2-iframe-help.html

    Source code: Right click, view source, copy and paste

    Accidentally kept changing the blog format... In the end just centered the iframe in CSS.

    Sadly the problem I mentioned exists, your home link simply opens within the frame.

  • I'm currently trying to get this to work (Tonne of code for a webpage!) but the issue I feel should be pointed out beforehand is that your link to your homepage wont work; an iframe is effectively a windowed browser, your link will load your site within the iframe.

    Parent frame control is something I'm desperate to try and work out in C2; no idea sadly.

    Ashley ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'd be interested in pitching in (Y) It'd give me something to think about in my down time

  • Yep sure thing, I don't have much time so I'm just going to dump the very hackish solution that works, sorry I don't have time to explain but hopefully the event sheet explains it!

    <img src="http://i.imgur.com/Knqmpbs.png1" border="0" />

    As well as an event that resets the tramp bounce variable when the platform object is "onLanded".

    If you have any questions please ask :)

    There's definitely a better way of doing this but my head's not in it...

    Yann

    Any suggestions, I want to say an if/else statement would be more elegant.

    Gotta dash :D

  • I'd be interested, but this is very vague!

    Have you bought software before? Do you have a contract in place to protect both yourself and your client?

    Assuming the answer is yes, a few more questions(!)

    Your spec leaves a lot to the imagination; you mention map select and upgrades: Who's planning them? The programmer? Or is there a brief in place that has to be followed? This can definitely change the price!

    Next up is leaderboards, what do you mean by that? A local high score table? Facebook leaderboards? GameCenter? Do you have a server if you're going for web-based leaderboards?

    The final thing I need to know is what platform? You mention mobile but that could be anything from iPad to a HTC Desire HD. Will you be handling the porting for each device or do you want it to be optimised?

    I've haven't charged a client for C2 work before, but based on previous jobs $500 would be the starting price, as well as a solid design document and contract.

    Hope you find what you're after   <img src="smileys/smiley1.gif" border="0" align="middle" />

Elliott's avatar

Elliott

Early Adopter

Member since 27 May, 2012

None one is following Elliott yet!

Connect with Elliott

Blogs