nutmix's Recent Forum Activity

  • OK, forget the last post - the dictionary object cant read json files - I thought the load action would load from file, but it only can load from hand entered text at design time.

    It looks like the only route is write a some AJAX code.

    Done this, and by luck you can use a relative URL which is just the name of your json file in quotes.

    So it works - I can read in some dictionary settings via a file at runtime.

    What is the earliest time I can do this? I need to get the entire game to wait till this has done, which is a pain.

    Im using "On loading finished". Is there an eariler event I can use?

    The format of the json file is:

    {"c2dictionary":true,"data":{"test":3,"test2":2}}

    The only problem I have now is that you cant edit the file in the single file project, you have to delete it and re-add it from somehwere else if you want to change the files contents. There is an "open" option if you right click on the file in the project, but this does nothing (for me anyway).

  • Sorry, does anyone know the format of the json text objects required to load into a dictionary? I need to create the file using notepad or similar with a bunch of key value pairs in can then load into the dictionary object or similar.

    I know XML, but dont know json. is there a json eqiv. of the DTD of the format required to load in to a dictionary?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Brilliant!

    Thanks.

  • The game has a lot of tunable parameters.

    Currently these are hard coded in global variables, which is bad.

    I was hoping the dictionary would have a load from file or similar.

    Is there any way in C2 to read settings from a file at runtime, so that testers/designers can modify the parameters?

    There dont seem to be any objects in C2 to read any resources (images, sprites, files, XML) from a URL.

  • i still get this error randomly when posting to the how to forum:

    Error Error
    Only members with sufficient permission can access this page.
    
    A security error has occurred with authentication.
    
    Please ensure that all cookies are enabled on your web browser, you are not using a saved or cached copy of the page, and your Firewall/Proxy settings are not hiding or masking your IP address.
    

    Its driving me mad becuase I spend an hour writing and researching an issue, hit post, and get this. Then I cant go back - ive lost all the work.

  • Hi, I have been detecting swipe left/right/up/down the old manual way.

    I see there is an AngleAt and a "compare touch speed".

    How does one use AngleAt? Its not in the touch objects actions, and its not a valid expression if you say "compare two values" and put in AngleAt.

    What is the parameter for "Compare touch Speed". Is it m/s, km/h, pixels/s or similar? I.e. what should I put in there to detect any kind of swipe, e.g. >0?

    Thanks!

  • Brilliant!

  • Hi C2, Do you know when approx the next stable release is planned?

    If its soon, ill start new project with R102, if its not ill stick with R95.

    Is there a provisioal list of features planned for next stable release (delta from current stable release)?

    Thanks!

  • installed 102 on spare pc, works in 102.

    Thanks.

  • Kyatric, thanks for the capx, just downloaded R102 to try it. What im actually trying to do is to have 2 layouts which create objects which have been sized on the layout (rather than sized dynamically), and one event sheet to handle both (i.e. both objects have to have the same name).

    Im trying to think of a way to do this without parameters and functions. Perhaps an array of object names, indexed by the layout name? Can construct 2 store pointers to objects? You cant seem to create objects by name or similar.

    I really dont want to have to duplicate and maintain the identicle except for object name code for portrait and landscape for 30+ games.

    Ashley suggested an interesting optoin - put both portrait and landscape on one layout, but I cant quite see how this will work in crop mode. Anyone got a handy capx with something like this in? Or perpahs to get round the anchor issue, I create 20+ portrait & landscape versions, on one massive layout, one for each target resolution? Id rather duplicate designs than code.

    Its quite hard working with a screen on a layout without using the dotted window lines and zero offest which would only work for one of the views - for the other views on the same layout you would be designing with no guides. Do people create a large background in photoshop with dotted guide lines on it or similar for multiple layouts on one layout?

  • It doesnt work for me on chrome either. Im using chrome 21.0.1180.89 on windows 7 pro 64 bit. Im 100% sure there is no network, as skype goes off line and I cant brows to any page after pulling the plug and wifi.

    Does it work for anyone else?

    Im accepting that popup wich asks if you want to use offline mode.

  • Thanks guys, appreciate the feedback. Note, for mobile there is no suitable wrapper - I have to use crop mode with a large background, anchor key elements such as buttons and HUD, and then use my own scaling algorithm for the center game elemnts. Letterbox scaling black bars, especially in landscape where most of the screen becomes black, are not an option.

    Separate portrait and landscape layouts are a must have, as the buttons possitions and other items have to move from the bottom to the side.

    Ashley, how can this be done on one layout? My strategy is that I design for iphone4, then scale layers up or down or not depening on the target platform (e.g. for ipad 2 I dont scale - I use iphone 4 layout as ipad is fatter), and make sure the backgroupd image is large enought (i.e. 1024). For PC i disable the scaling, and export as fixed size and layout.

    If portrait and landscape have differnt item anchor points, I dont think this can be done with a single layout?

    Also, I have to have swipe left and right for settings and info. I have managed to get a prototype of this using a fixed layout 3x the window size, but this wont work if the target device has different resolution so Im still trying to figure this one out.

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies