nimos100's Recent Forum Activity

  • [quote:3vfc404u]Allowing a user to specify an arbitrary local folder;

    Populating a struct with paths to each image file within (including subfolders);

    So that I can use the struct later to make 'load image' calls etc;

    And use the images in my game.

    You can do that with NWjs, I do it in my program. However have no clue how NWjs plugin work with android. But when that is said, Working with NWjs to do something like this is NOT designed to be easy. It is filled with bugs, functionalities that you would assume were compatible, but ain't. So the only way you can make it work, is if you create a *%mxp@# load of workarounds. Like parsing path to files, folders etc. and if you are not sure how many sub folders there are, it will be even harder.

    When that is said you write that the user might select 900 images for instant. Which will lead to the next problem, which is "Load image from url" if you plan on showing more than 1 image at the time in you app. You actually have to create the number of objects or frames in the object which you want to hold each image or it will not work, as it will overwrite your other images. So this gives you two problems.

    1. Either you say that there can be a maximum of images in your application. And just hope that is enough.

    2. Or you can let them only load one image at the time.

    So you are left screwed to be honest. Because If you use option 1, you actually have to create X amount of empty frames in you application for no reason. So if you want the user to be able to load lets say 100 images and preview them in the application. You have to add 100 empty frames to the object holding the images. Which of course means that your application will read all 100 empty frames into memory for no reason, which will probably not be good for your applications performance.

    And if you use option 2, you wont be able to do what you want.

    But should you decide to give it ago anyway. System.Tokencount and System.Tokenat are very useful, when parsing paths. Besides that I don't even know where to start giving you advice, because the way it works is just to weird and bugged that, you pretty much have to make up the workarounds as you run into them. But of course its a good idea to make sure if NWjs even works with Android.

  • You can add the inverse keys as well.

    For instant:

    Left arrow is down

    X Up arrow is down

    X Down arrow is down

    X Right arrow is down.

    Then you make one for each possibility you need.

    Left arrow is down

    Up arrow is down

    X Down arrow is down

    X Right arrow is down

    etc.

  • Problem Description

    Using the open dialog options in NWjs doesn't work while you run application in debug mode. It just wont open any of the popup windows.

    Attach a Capx

    Not specific to a Capx. Just add NWjs and do a open dialog in debug mode.

    Description of Capx

    Just trying to open dialog window in debug mode.

    Steps to Reproduce Bug

    See above.

    Observed Result

    Open window doesn't show

    Expected Result

    That it would work as in normal mode

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (Don't know)
    • Internet Explorer: (YES)
    • NWjs: (YES)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    r202

  • [quote:163lw5z8]This is exhausting and life-sucking, I can't imagine how hard it is for him to do this for this long, and I understand he just can't profile every game on earth / fix all bugs with only 24 hours in a day. Aaaand, then back to [Every X days - Trigger Once while true] > cause at the same time I feel so frustrated to see such a great tool only based on html5 and only on a one man army.

    Well I do agree with you that C2 in general is a very cool program so wouldn't disagree with you on that. But look at the bright side, even though it might be frustrating to answer and listen to all the "Complain/Feedback". I think (well at least for me) its not to have a go at Scirra or Ashley, they are very involved in the forum and as you say respond to people, which is really good customer service compared to a lot of other websites, where they don't react to anything.

    But to be honest I think a majority of people just want C2 to be as good as possible, but out of frustration the message is not always delivered in the most civilized way . But on the other hand it shows that people actually care I think and in the end it also helps Scirra to improve the program, imagine if no one gave any feedback but just instead left in silence, then it would be even harder for Scirra to know what people wanted.

    And also remember a forum like this will automatically be the number 1 place for people to go complain about it, there are not really anywhere else where it makes sense to do it. So of course it can appear overwhelming, but honestly I don't think its any different than any other forum out there, from my experience at least. Its just part of the game I guess

  • Problem Description

    Not really sure if this is a bug or not, so if someone could double check it, it would be great. But using NWjs Open browser doesn't seem to work for me.

    If I preview it In Chrome or IE, it doesn't open the URL and no error is given, nothing happens.

    In NWjs if I use a path like "C:\Users\" or an URL, I get the following error:

    However in NWjs it does actually work in both cases. Even though it gives the error message.

    Attach a Capx

    Not really needed for testing.

    Just add NWjs to a project and then use Open browser with an url.

    Description of Capx

    Just opens an url using NWjs open browser functionality

    Steps to Reproduce Bug

    Observed Result

    Gives error message. However works in NWjs, but not Chrome or IE

    Expected Result

    That it didn't give an error message.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (Don't know)
    • Internet Explorer: (YES)

    (And NWjs)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    r202

  • On mouse left click 
    Pick object with UID = <Something>
    --> Set Object.angle = Object.angle + 10
    [/code:9bmlp27h]
  • NWjs

    Delete folder - For some reason its possible to delete a file, but not a folder. So would be nice If that was possible as well.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Problem Description

    Sorry for posting yet another one with this load image from url, but might as well get it fixed

    Think this problem might be somewhat related to: https://www.scirra.com/forum/r200-load-image-from-url-or-nwjs-bug-v2_t128806

    The problem is that you can't select individual sprites for loading image from URL, it doesn't respect picking.

    This is an overview of the test program:

    Three different images which each are linked to a sprite. Each sprite have 3 frames.

    Using the code "Load image from URL" will give the following result. Even though it uses a For each and each of the sprite have different images attached.

    Using the code "Load image from URL using index" will make the load from url load the correct images.

    However using an index to load the images into the correct frames gives some problems. Since this is only a valid way to do it, as long as you know exactly how many images you need. If there are less frames in the sprite it wont work. So causes some issues, one is that load from url is not dynamic, but also picking certain sprites to be used for load from url is completely ignored and the image is loaded for all sprites and controlled by the number of frames in the sprite if you want to load separate images to them.

    This also means that if you want to make it dynamic, in the sense that you don't know before hand how many images you need to load. You have to add empty frames to the sprite, which will use memory for no reason.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/109921357/Load%20image%20from%20url%202/Load_image_from_url.capx

    Description of Capx

    Just load 3 images into 3 sprite instances

    Steps to Reproduce Bug

    Just run the program. Disable one of the groups.

    Observed Result

    Picking of sprites is not used when using Load image from URL. Resulting in use of unnecessary memory if you want to use it dynamically.

    Expected Result

    That images was load for the picked sprite and not just all of them.

    Affected Browsers

    Tested with NW.js

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    r202

  • [quote:3e7lt2rs]- Pathfinding could fire "then" after the path is found

    Doesn't it already work like that, "On path found"? What would be different or the benefit?

    [quote:3e7lt2rs]Does anyone have any thoughts about this? Good idea or bad idea? Perhaps there's an even better way it could be approached?

    Im not 100% sure I understand the benefit in this. Completely agree with the "When data loaded" kind of thing, which is very useful.

    But if you make a game and do a Async read of data, wont the data be to old when needed as you write the game will continue on. So when the data is actually need you would have to get it once more, in case it have changed.

    Wouldn't that leave two options, either you have to make sure that the data is there when you need it, so would require you to wait for it regardless of how it is read?

    The other one is that if you have a program that requires to load larger amount of data, you would wait for it to load. So you would put it at the start of layout or somewhere where you would wait for it to load, or it would be data that will not "impact" the game, so it wouldn't really matter if it was read as Async or not.

    But maybe I just misunderstood the benefits?

    As I see it the problem with Wait is that it just wait a specific time, which is fine for what it should be used for. But often it is used to "Trick" the code. Which is not nice I think. Whereas "Wait for signal" will allow the program to wait for something to be done or happen before moving on.

    So maybe a better idea is to just add more "Finalize triggers" to different things. Like you have "On path found" etc. It could be "On local data read", "On local data written", "On audio file loaded", "On video loaded" and so forth.

    Or is that not what you are trying to achieve with this?

    But regardless I do agree that "Then" is probably a bit confusing name. Then "Async. completed" or something might be better.

  • Someone posted this at some point and guess that is what you are referring to? Which is the best way to do it I think.

    http://www.saltgames.com/2010/a-bitwise-method-for-applying-tilemaps/

    Otherwise you could hardcode it yourself, by just going through the tilemap, tile by tile and setup all the rules you need. But again would use the method in the link.

  • Don't you have any code in the game? or is it just 3 sprites and poor performance?

  • Cant you just try to add it different places, and see what it does?

    But would guess that it should be: RunTrack.X - (dt * 200 * RunTrack.Speed + TrackSpeed)

nimos100's avatar

nimos100

Member since 23 Sep, 2012

None one is following nimos100 yet!

Trophy Case

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

Progress

16/44
How to earn trophies