nutmix's Recent Forum Activity

  • If you create a project and import 1 sprite, e.g. crater.

    If you have two layouts, e.g. layout 1 for portrait and layout 2 for landscape.

    Both layouts have the same event sheet (as they are the same game, just different object positions and sizes.)

    We copy the objects from layout 1 to layout 2, and all is good.

    Well not quite.

    For some reason I dont yet understand, when I do System->create object->crater in layout 1s event sheet, it uses the (resized) copied crater object from layout 2, not the existing one from layout 1.

    This goes against what people are telling me about the scope of ojects in C2 - that they are local to the layout.

    Here is a capx which demonstrates the issue - the created crater should be small and square, not the stretched one from layout 2.

    https://www.dropbox.com/s/8s65a3rac3q5htn/objectscopeissue.capx

    Its just a project with 2 layouts. The crater object was dragged to layout 1 to create a sprite ouside the window area. then it was copied (cut and copy) to layout 2, and resized. Then in layout 1, when we create a crater object, it ignores the crater object in its local layout, and grabs the one from layout 2.

    The issue is that without the ability to copy & resize objects and refer to the correct one in a single event sheet, I cant think of a way to implement portrait and landscape versions of the same game (a requirement for mobile html5 games), without duplicating all the code and renaming the corresponding sprites to get local versions. Any ideas?

  • I had my input for various states and layouts spread over several event sheets to keep things organised. I have rewritten the project to fit in with this - i.e. all input in as few sheets as possible, then disabling the various appropriate groups.

    The ability to disable touch & click input on sprites and/or layers would be very very useful in a number of cases in my games at least. Button sprites that you cant disable are difficult to manage, and require a number of globals which are generally not good practice

  • Here is a published page which doesnt seem to work for me:

    http://www.ohds.co.uk/c2/offlinecheck/

    And here is the 2 line capx:

    https://www.dropbox.com/s/0ky8tm5wkyw5c06/offlinetest.capx

    Perhaps Im using it incorrectly?

  • If I want a static black bar to strech across the top of the layout, would it be better to create a single 1024x60 image and past it in as a sprite, or create a 1x60 image and create a tiled background and let it strech across?

    Both will look the same.

    Im guessing the tile version will adversly affect performance on slow devices such as the iphone3? This would outway the benifit of a smaller file to download. Or perhaps the sprite, even if not being animated, reduces performance?

    By performance I mean FPS and responsivness of GUI.

    Any thoughts?

  • In crop mode, the game can be played in an area bigger than the layout. I have all my lahouts set to the target mobile window size so I can see what I am doing and set anchors, then I put a 1024 background image on them.

    However, if the player should have a large screen, and open the game window bigger than 1024 (in crop mode), there is a white background around it. This is what I need to change. I could of course create a background image which is larger than the largest monitor available and put it on every laout, but apple keep bringing out even higher res ones. Putting a 4k x 4k black backgroud image on each layout for mobiles is getting a bit extreme.

    Im hoping the white background outside of the layout is changable somehow (even If I have to write a javascript parser to change some code in the compiled js).

  • Brockatkinson, what is the canvas, and how does it relate to the projects "Window size"? Canvas is not in the manual, unfortunately. I have seen viewport mentioned a few times also, but cant find any reference to it. Are they different?

    Any tips appreciated!

  • Ashley, which version does it work on for you?

    I pulled out my network cable, switched off wireless (have HW switch), and tried to hit a page (e.g. google) to check it failed. For the phones and ipads, I simply siwtched off my ADSL wireless router, then checked i could not access any web pages (there are no other access points near me).   I tried on iphone4, iphone 3, ipad2, PC with chrome and FF.

    I would be very excited to get this working, as it would really help the app.

  • Thanks Ashley!

  • Frequency: Always

    Repoducability: 100%

    Method of reproduction:

    1. open a layout

    2. insert a tiled backgroud

    3. import a png into the image editor

    4. select an area with the rectangular select tool

    5. click on the crop transparent edges.

    6. Observe hang.

    7. restart app.

    Actually, hitting "cut" instead of crop also hangs C2.

    I am just trying to find a way to crop an image.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Im using crop fullscreen mode to support multiple mobile screen sizes. The background is white. How do I change it to another colour?

  • I put:

    Browser->On went offline: do something in GUI
    

    but it doesnt work for Chrome (21) or FF (14.1) on a PC or safari on iphone4

    I bascially switched off the wifi, and tried hitting a page in another tab so the browser really knew it was offline, but no joy.

    I tried it from the preview on lan, and also I exported the project to apache 2 and hit that, but no joy.

    Am I doing something wrong?

    using R99

  • Our game only works when connected to a server, and we dont want to scare off our casual users with the browser message:

    "this web site (...) is asking to store data on your computer for offline use"

    How can we switch this feature off (i.e. no offline caching)?

    Its a reqirement for us launching, unfortunately.

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies