gibbon's Recent Forum Activity

  • With the export facility of NW or Webview which allows for standard desktop execution, surely there should be a way to load in local files at runtime.

    I can see that NW.js has the option to open local files via dialog, However:

    A) this doesn't seem to work with videos...

    B) I don't want to open dialog, just load a video from a file location and play it...

    Andy

  • Here is an example of the difficulties faced:

    SCENARIO

    1. Fullscreen set to Outer scale.

    2. HTML Element with Anchor Behaviour on all sides so it scales with viewport.

    3. HTML Content contains a scrollable DIV with a set height.

    4. Using JS I want to set that CSS Height property to the height of the HTML Element

    ISSUE:

    HTML Height Value doesn't go below the height set at editor time, yet it definitely scales down very small. I cannot find a anywhere what this scale factor is?

    When the window is scaled with "Outerscale" set, clearly objects get scaled but there relevent width/height values don't change?

    EDIT: Think I have managed to find a way, but not confident, will continue on and see where I get.

  • I know you are determined to have us use one of the full screen modes, which I'm sure work great for games, but for apps (which lets not forget C3 is really good for) I have tried every possible way to have true responsiveness but I have come to the unfortunate conclusion that its really not possible?

    A simple, standard app layout where the header and bottom menu bars simply adjust to the width only and the ability to then centre and resize the content too just doesn't seem possible.

    To do the above, you have to have the fullscreen mode to off and resize the canvas, but resizing the canvas to something LESS that the initial layout size shifts everything off screen. There is no way at runtime to resize the layout (only scale)...

    I am very surprised but this, it really does take away that native app feel as none of the standards fullscreen modes are suitable for app designs.

    EDIT: I believe I have found a way but its not great, I have to have the layout size set to something very small (10x10) at edit time. - Not working correctly - also not viable.

    EDIT: Am I wrong in thinking a Layer with its scale rate set to 0 shouldn't scale? It still scales down when I resize the window?

  • So has support for this plugin been dropped?

    Doesn't appear to be much activity on here from the developer?

    I have issue but seeing as my last issue wasn't addressed I don't hold out any hope.

    I want to create objects at runtime and add them to the content of the "scrollview content" object. At design time you would have your scrollview object which you assign the content object to which you can then parent other objects to.

    I am trying to therefore do that last bit at runtime (parent the created objects to the scrollview content). However, I could find a "parent" action, I could however find an action to set the children to the "scroll view content". This works, however, doing so the scales the children to the parent, and there are no available actions to set the local scale or just not have this happen.

  • In your screenshot I see two things that could be an issue.

    1. You only really need the ‘post’ and not the request. You post the data to the php file, the php file executes and outputs any data that you want returned. That returned data will be in ‘Ajax.lastdata’. The way you currently doing it with two php files can work if preferred but you will still need to check the lastdata from the first post request in order to validate it was successful before doing the 2nd request.

    2. The post request appears to be sending the parameters via a GET, are you receiving them via GET or POST in the php file?

    If you use chrome, hit f12 and look at console & network, console will show any errors and network will show the two requests, the parameters and the returned data (if any)

  • Because there is no way to "save/extract" a "loaded in" image from a sprite I am having to do the usual way of "Canvas Snapshot" the sprite, save to binary, then push as a Base64.

    However, the images are loaded in using the file chooser (multiple) and I don't want to "show them" before uploading. However, I do want to resize them, hence having to load them into a sprite, resize, snapshot and upload.

    When I do this outside of the viewport I get white snapshots... Is there a way to snapshot outside the viewport? OR a better way to load in an image, resize/reduce it before uploading.

  • There appears to be a lot of effort gone in to enable loading images into sprites from urls, base64, binary object, local storage etc.

    But why is there no easy way to simply save the loaded image as a base64, or save it into binary etc?

    Do we really have to do the whole complex "snapshot" the canvas (LayerToCanvas, DevicePixelRatio ETC) then request that using ajax, into binary and convert to base64...

    I have loaded an image from a URL (API), all i want to do is simply save that loaded image "somewhere" either into local storage or post it somewhere as base64.

    EDIT / UPDATE

    The way I am having to dnow do this is:

    - Ajax request the image straight into binary.

    - Then load the image from baniary into the sprite.

    - Can now send / save the binary/base64 as i wanted.

    I still wish there was a way to simply, "Get image from sprite".

    Andy

  • I have finally figured this out so posting the answer for future users (including myself!). From my initial test this will snapshot the area of "Sprite2" regardless of screen size ETC.

    I still this there could easily be another function added to the likes of "Take snapshot of area" and it does all this for you?

  • Hi, I am trying to take a canvas snapshot (not drawing canvas) of a particular area (in this case a sprite (Sprite2)) and I cannot work out why its not working using the events as shown in the photo. To be honest, I've been down this road before and gave up, apparently it is possible, why it has to be made so difficult I'm not sure.

    The following works only if the window/browser/viewport is exactly the right size to the layout. Otherwise, it appears the Offset works (X,Y) but the Width and Height are still incorrect.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's difficult to tell exactly what is happening, but since you said you are using some javascript, is it possible that some of those snippets are using the await keyword?

    If that is the case, the javascript is asynchronous and needs to be waited for before continuing if you want to keep things running sequentially.

    https://www.construct.net/en/make-games/manuals/construct-3/scripting/using-scripting/scripts-in-event-sheets

    Just realised that it does thrown and error in the console when trying to load files without the "wait for previous action to complete" in place.

    Uncaught (in promise) RangeError: Maximum call stack size exceeded - in Parameter.js

    Why is this?

    EDIT

    I have changed this so now it doesn't run the function from within the function, but instead it runs it separately every tick. I then realised it was fixed at 60 fps (v-synced) so will only read lines at 60/s, changed it to unlimited and it now reads them as fast as it can, and successfully.

  • I understand, I apologize, I am somewhat desperate, in the forums that I have entered most of the people are inactive, I thought I could find help in the forums where they have been sharing them for a short time, again I apologize and withdraw.

    That's fine, but your just plucking at straws and hoping for the best whilst clogging forum posts up with repetitive content.

    Post your own thread, with a relative title and someone who sees it will help. Trust me you will be much more likely to get a response that way rather than try at other users posts that are trying to resolve their own issues.

  • sorry, what happens is that the behavior I had in construction2 now that I am going to export to contruc3 tells me that I must have installed the ZIGZAG behavior made by rex.rainbow, the problem is that I can't find that behavior for contruc3, so it won't let me opening the project, I've looked for it everywhere and I can't find it, and removing it from the game would open new bugs.

    You might want to open your own forum post as apposed to just jumping on other random ones?

    My original post has no link to what your asking for.

gibbon's avatar

gibbon

Member since 18 May, 2016

Twitter
gibbon has 1 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

13/44
How to earn trophies