h1k3's Recent Forum Activity

  • I don't know if it helps but I ran into a similar problem, that black bar was very annoying. So as you can see at my app contactwizardpro.com I resize everything to fit the physical screen. Try it on your iPad and you will see what I mean. However it does do what you want and fit the whole screen for any resolution and zoom scale.

    What I did was create a sprite variable for x and y positions. Then I hard coded the variable with the result of x or y and the app width or height accordingly. Then whenever the screen size changes I set the x and y positions to windowidth times the x variable and window height times the y variable. That resets the position according to the new window size.

    If you do the exact same for sprite height and width it resizes them as well so no matter how the window resizes the layout is exactly the same as your construct2 layout.

  • Link to .capx file (required!):

    dl.dropbox.com/u/77974757/bug4-4-13.capx

    Steps to reproduce:

    1. Open file in the latest chrome build

    2. Click the browser zoom in/out

    3.

    Observed result:

    Unlike the other browsers the textbox jumps all over the screen.

    Expected result:

    This uses the same logic as the text and sprite plugins events. They do not move on the screen.

    Browsers affected:

    Chrome: yes

    Firefox: no

    Internet Explorer: no

    Operating system & service pack:

    Windows 7 Professional

    Construct 2 version:

        124 Beta

  • You do not have permission to view this post

  • I understand the for loop isn't formed to set the layer visible. I had it set properly but couldn't get it to work, so now I'm just trying to get any of them to be visible because it's so frustrating.

  • I'm trying to automate in javascript the setting of one layer visible and the rest invisible. I can't seem to wrap my mind around how to accomplish this. Please tell me what I'm doing wrong. Here is the runtime function:

    Acts.prototype.SetVisible = function (visibles, begin)

         {

              var layernow;

               for (var i; i = begin; i<= begin+100)

               {

              layernow = this.runtime.getLayerByNumber(i);

              layernow.visible = true;

                   this.runtime.redraw = true;

               }     

         };

    And the edittime settings:

    "name":               "Contact Wizard Pro",                    // as appears in 'insert object' dialog, can be changed as long as "id" stays the same

              "id":               "ContactWizarPro",                    // this is used to identify this plugin and is saved to the project; never change it

              "version":          "1.0",                         // (float in x.y format) Plugin version - C2 shows compatibility warnings based on this

              "description":     "<functions built for Contact Wizard Pro>",

              "author":          "<your name/organisation>",

              "help url":          "<your website or a manual entry on Scirra.com>",

              "category":          "General",                    // Prefer to re-use existing categories, but you can set anything here

              "type":               "object",                    // either "world" (appears in layout and is drawn), else "object"

              "rotatable":     false,                         // only used when "type" is "world". Enables an angle property on the object.

              "flags":          pf_singleglobal | pf_appearance_aces | pf_predraw,

    And the action in edit time:

    AddNumberParam("Layer", "Layer to make active" ,0);

    AddNumberParam("Starting Layer", "Start layer search on this layer" ,0);

    AddAction(1, af_none, "Set Visible Layer", "Layers", "Set {0} to visible", "Set the working layer visible!", "SetVisible");

  • Ashley, Kyatric

    Is it possible to put javascript in the edit time file?

  • newt,

    Well my facebook plugin for example. Lets say I agreee to some sort of naming protocol for the zip file like (name)(version)(mm-dd-yy) and submit my plugin file pathname (www.path.com/myplug.zip)

    Then they would just check the filename and see if there is a newer version. Download and unzip into the directory if there is. Yes I meant third party. :) Anyways just a suggestion.

  • Ashley

    Is it possible to add the ability to check plugins on startup for a newer version. Prompting users to download new versions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Facebook messaging is possible.your using an outdated plugin though. Ashley would you mind deleting this forum? I have a more up to date plugin with a lot more features.

  • Hi everyone,

    Could you test out my Facebook snapshot feature please.

    My app

    What I need to know is when you click the button does it take a snapshot and post it to your wall? I built a snapshot upload feature for a friends app and just want to make sure it works.

    Thanks a bunch

  • I thought I would share this cute article on game ideas that will supposedly "never get made"

    So prove them wrong :(

    Cracked.com article

h1k3's avatar

h1k3

Member since 1 Apr, 2012

Twitter
h1k3 has 3 followers

Connect with h1k3

Trophy Case

  • 12-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies