AxeSaber's Forum Posts

  • 14 posts
  • Is this possible?

    I want to have a Main Layout that acts as a main Hub and have another Layout, that can be swap with another, to appear in the center of the Main Layout.

    I would like it if I can click though the Layout in the center and click on an object behind it.

    One of the reasons why we want to do this instead of having one Layout with Layers is that we are working as a group and we do not want to step over each other's work.

    Thank you in advance

  • Hey I've got an issue with the iFrame and I was wondering if anyone know how to solve this.

    I created a few Construct 2 buttons underneath an iFrame. But I cannot click on those buttons with the mouse. The only way I can do that is if I add "pointer-events: none;" to the Style, but this prevent me from interacting with the mouse inside the iFrame.

    Any ideas as to how I should go about getting both the buttons behind and inside of the iFrame to work with the mouse.

    Thank you

  • I'm trying to put my game into an iFrame.

    But The iFrame I'm trying to put it in have a different Size Ratio so I'm seeing a black boarder to the sides (or Top and Bottom, base on width and height).

    How can I get rid of those black sides without setting the Window Size in Construct 2? I want to put them inside different type of iFrame sizes.

  • Is there anyway to get other C2 objects to be on top of the iFrames or Div instead of them always appearing behind them?

  • I've been working on a long term project for a while and recently I notice that If I create a HTML5 build and run it on Internet Explorer the TextBox start having problem.

    I can click on the textbox and type in normally.

    but when I click on the textbox with the mouse the 'x' clear button on the right of the textbox disappear and the Text Cursor is still there blinking.

    When I am in this state, I can still type but I cannot use the space-bar.

    I can click on it again and the 'x' clear button shows up again, and I can use the space-bar again.

    I tried creating a new project with Text box, and I don't have any issue like this on it.

    Anyone know what I could have done wrong?

    Thank you

    Edit:

    There is a simular issue when the text box is set to Text Area as well.

    Only this time it won't space if the boarder is blue instead of black.

    And if you have a placeholder text in there and it shows up. you can still type in text and it will be entered along with the placeholder

  • I'm trying to get the position of the mouse if the mouse is outside of the game window. but the mouse.x and mouse.y doesn't update the position when it is outside.

    How do I update the position of the mouse if it's outside?

    Also I'm having problem with mouse over CSS objects like Textbox as well. the Mouse position doesn't get update.

  • I use the Browser Alert Action in the Eventsheet and build my project in HTML5.

    Sometimes when I run it the Popup Message will appere and when I click the OK button the Popup Comes back up again. Same message too.

    This also happen when I'm writing my plugin in javascript and have multiple Alert message one after the other.

    It's just shows the 1st Alert message over and over again.

    My colleagues don't seem to have this issue on the computer with the build.

    Any Ideas as to what is going on and how to fix it? Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just to let everyone know. My method works.

    In the eventsheet have the localStorage.getItem("MySavedKey") check for a non empty string every frame.

    and reset it afterward

  • The capx is not working like the online demo. I'm guessing that the browser does not like to load the hashtags if it from a local computer instead of it being on the internet.

    I think I have found another solution:

    Have the html call

    "<script>

    localStorage.setItem("MySavedKey", "MyVariable");

    "</script>

    create a plugin that have a Expression

    and return the string of:

    localStorage.getItem("MySavedKey")

    the expression will return "MyVariable"

    I have not combine it with this html code

    <button onclick="myFunction()">Click me</button>

    <script>

    function myFunction() {

    localStorage.setItem("MySavedKey", "MyVariable");

    }

    </script>

    I haven't tested it yet. It going to take me sometime within the next week to test it.

  • Hi Pode,

    Thankyou for this plugin. I have a question about the iFrame

    At runtime, is there a way for me to click on an object (image/buttons/ect) inside the HTML/iFrame and have it call a function in Construct 2 and also sent an ID of what get clicked.

    IS there a javascript I have to write for the webpage itself?

    Thank you.

  • I am creating multiply sprite by spawning an excising one.

    After creating a certain number of sprites and run "Load Image from URL" on each of them. I wanted each of them to use different sprite.

    However all of the sprites get set to the last image loaded. Even the ones that I didn't call "Load Image from URL" get loaded with the last sprite.

    How do I go about getting all the sprite to load up individual sprites?

    Can I just copy and spawn a new Object instead of an instance?

    If there's a code that I need to change inside the sprite plugin I can create a new plugin and copy the code over and update it from there.

  • I'm trying to create a plugin where Events and Actions get set after being created, during run time.

    How do I go about doing this in the Javascript of my plugin?

    How do I edit the Event sheet at runtime?

  • I am currently making a plugin that can create new buttons, sprites, text, ect. during runtime.

    How do I create, change, and Set events to these objects in Javascript/Runtime?

    Thank you

  • Hi,

    Our group are trying create plugins for our game.

    I already created a new folder inside the Construct 2 plugin folder and the necessary files.

    I would like to know what IDE would you use to code in and how to set up the intellisense for it.

    Thank you

  • 14 posts