brunopalermo's Recent Forum Activity

  • Remove the double double quotes. They're needed when the XML is inside a String, but since you're reading it from a php you shouldn't use them. They're messing things up.

    Cheers!

  • A capx would help to understand your problem and find a solution.

  • Hi Bootfit!

    Here's a capx using absolute URLs to load images from outside the app into a placeholder.

    https://www.dropbox.com/s/hzpxh6x272h21 ... .capx?dl=1

    IMPORTANT NOTE: I changed the productImage from a Sprite object to a TiledBackground object. This is necessary because all instances of a Sprite object will load the same image, while instances of a Tiled Background may have different images loaded to them.

    Hope this helps. Cheers!

  • Hey imothep85!

    Here's an adjusted capx. I added a loader, so the iFrame only shows after its content is fully loaded.

    https://www.dropbox.com/s/cb0axyo685ddv ... .capx?dl=1

    Also, I checked the Le Soir site and it has, indeed, a http header called X-Frame-Options set to "sameorigin", which keeps it from being loaded in a frame that is not on the same site.

    Note: do not add events to the layAssets layout. It's a eventless layout that has the purpose of storing stuff that will be created dynamically, since Construct 2 needs at least one instance to exist so it can load an object. Think of it as an asset repository.

    Hope this helps. Cheers!

  • As dop2000 mentioned, just use gravity 0.

    Check this capx for an updated example...

    https://www.dropbox.com/s/sr5ry6c7l1vmg ... 2.capx?dl1

    Click anywhere to apply an impulse from that point towards every object.

    Cheers!

  • Translation:

    -Help me hack this game.

    Posts: 1

    Reputation: 127

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should use a family instance variable, instead of an object one. This way you could just do the following:

    Pick FamilyGrains by UID | Set TextObject.Text to FAmilyGrains.V_Name
    [/code:2wfqulz9]
  • My bet is that the problem is with some sites, not your events, but... Maybe both things are contributing to the problem. i can't say without checking your capx. Good luck!

  • Hi imothep85!

    Well... That doesn't make any sense. I checked the DH.be site and it opens on both situations, if you put it as default or when you click a button, the other one Le Soir, doesn't open in any of those situations. So, I can only assume that someting at Le Soir is keeping you from opening it inside an iFrame.

    https://www.dropbox.com/s/0ayn1szj5nzc8 ... .capx?dl=1

    Check this example. I have a button for LeSoir and I'm trying to open it by default. None of those work. All other sites, including DH.be work fine. Note, also, that TED site will blow the iFrame and open itself out of the construct window and in the main browser window.

    Cheers.

  • If you set immovable to yes they will be immovable, no matter how much impulse you apply. In order to keep them from falling you should create a ground or something, which must also have the Physics behavior...

    https://www.dropbox.com/s/iat0s4bzf9fek ... .capx?dl=1

    In this capx I apply the same impulse at the same angle to both objects everytime you click anywhere. See how they behave differently. Also, note that you don't have to add the Solid behavior to Physic objects. They already recognize one another as solids...

  • Note that some sites won't open in iFrames. Others will detect the iFrame and refresh out of it. So. I'd suggest you check the sites you want to open in the iframe outside of your construct app, before trying to solve the problem on construct. A simples way to do that is by accesing the iframe TryIt! tool at w3schools (https://www.w3schools.com/tags/tryit.as ... tml_iframe), changing the url there and hitting "Run". If it doesn't open there, it wo'nt open on your construct app. For instance, I just checked "http://www.lesoir.be/" and it doesn't open in iframes...

    Hope this helps. Cheers!

  • when it aim to object (ex: Player) i want to appear the game over screen what i do

    I don't get what you're trying to do... Could elaborate on that?

    Cheers!

brunopalermo's avatar

brunopalermo

Member since 7 Jun, 2013

Twitter
brunopalermo has 6 followers

Connect with brunopalermo

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies