nutmix's Recent Forum Activity

  • I got no takers for this work, so have done it myself. If anyone wants paid work for creating games for mobile, plugins or workarounds like this, let me know as I have plenty.

    In fact, if anyone has any skill based game which works well on mobiles which last less than a minute (or can be adapted to do so), let me know and I'll make you an offer for the source code.

    We have grapic designers, so dont worry about the quailyt of the art.

  • hmm. That sounds logical, but layout 1 defilietly is creating objects from layout 2. e.g. If I have spriteA on layout 1 and the same object copy on layout2, then radically change the size of spriteA on layout1 to be huge, and the spriteA copy on layout2 to be tiny, when the object gets created on layout1 its using the tiny version from layout2. Layout2 uses the tiny version too.

  • I have a game which was created on portrait. I then copied the layout (and all its layers and objects), named it landscape, and resized and re-arranged some of the items.

    How does construct 2 reference copies of the same object on the same layout, and on different layouts?

    Is there any way to reference the object on the current layout (e.g.

    craete object CurrentLayout.SpriteA
    

    Otherwise, how will you know which of the two objects of the same name it will pick?

    In game, the player can switch between portrait and landscape any time (e.g. by resizing browser, or turning phone/ipad).

    I have one event sheet attached to both layouts.

    It mostly works, but there are some strange effects.

    Sprite A and Sprite B were on layout1, and were copied to Layout2.

    In the event sheet, I create new sprite A object, and place it on the layout. If I resize Sprite A in layout 1 before hand, the new size is not reflected when playing in either layout1 (portrait) nor layout2 (landscape) - its in limbo.

    However, when I resixe Sprite A copy in layout 2, the new size shows up when playing in both portrait and landscape mode. This is odd.

    However, if I resize sprite B, which was sitting on the layout (not created dynamically) 1, it only affects layout one, and the same for layout 2.

    Other strange effects are that I have a version, status and FPS text field which are all updated by the single event sheet each tick. However, only two of the three text fields work - I cant get the version to work any more. Even though I am updating it, its not getting updated in either layout.

  • My app uses crop mode to handle multiple sizes of mobile browser to avoid the black bars of letterbox. However, when not on a mobile device, I want to switch back into letterbox. I tried doing:

    Browser->request fullscreen - Stretch (letterbox scale)

    but this has no effect (in IE and FF at least).

    Does anyone know how to change the scale mode in an event sheet?

  • OK, reinstalled R100 in a different place, and I can confirm it seeems to work with webGL switched off. However, it works fine in R99 with webGL switched on.

    We probably cant expect our customers to have the latest drivers, unfortunately.

  • Sorry Ashley, I've uninstalled R100. R99 works perfectly, R100 doesnt for some reason. I have the latest available drivers installed from Lenovo (got a W520).

  • I cant preview in Chrome either. Using R99. FF is my default browser.

    The error message I get is:

    Unable to launch browser 'Chrome' for preview. Please ensure th latest version...

    If I hit Windows-R, and type Chrome, it opens up a file exporer with this location:

    C:\Program Files (x86)\Symantec\VIP Access Client\chrome

    I have no idea what Symantex VIP access is - I have never installed it, and uninstalled everything which mentioned it some years back.

    Chrome says it is up to date.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you press the "play" button at the top of the screen, you usually see your changes in the browser.

    However, there are a number of changes which no amount of refreshing, closing opening browsers, saving the project etc will show, one of which is if you change the "first layout" in the project properties.

    To reproduce:

    1) create a new project with 2 layouts.

    2) put "layout 1" text box on first

    3) put "layout 2" text on second.

    Now hit preview which opens up your chosen browser.

    You see layout 2.

    Now in the project properties, change the first layout to be layout 1.

    Hit preview.

    You still see layout 2.

    Change the first layout as often as you want - you will only every see layout 2 in the browser.

    Close and open your project.

    Now you see layout 1.

    Here is the capx I used to reproduce:

    https://www.dropbox.com/s/3tdoj30c7a51if8/previewBugTest.capx

    Just open it, preview (you should see layout 2).

    Now change it to layout 1 - preview again and you still see layout 2.

    Save, close and open the project - now you see layout 1.

    I get the same problem with a number of other attributes and events.

    using FF 14.1, windows 7 64 bit.

  • If you set your widow size to say landscape (e.g. 640x480), then create a layout with the same size and use crop mode, the layout is always centered nicely.

    However, if you now create a portrait layout, in say 480x640, and switch between them, your portrait layout is not centered and is unusable with parts off screen etc.

    Here is a capx to demonstrate the effect, you will see that when you click to change to portrait mode, and resize your browser, its off center.

    https://www.dropbox.com/s/tz4vz0epn3vtkwo/layouttest.capx

    Is there a trick to get he layout in the middle (without changing from crop mode?) I could guess where to put the objects on the portrait layout and ignore the layout rectangle, but this is inaccurate and difficult.

    Help much appreciated

  • For mobile, you have to have two layouts - one for portrait and one for landscape.

    If I copy the portrait layout to landscape, change the landscape layout size, re-arrange the objects, change the anchor points and attached the same event sheet as for portrait - everything is good right?

    Well not quite. To handle lots of differnet screen sizes, Crop fullscreen mode has to be used, and the objects such as buttons and score are anchored so they move in/out with the resize. However, when you modify the anchor behaviour (i.e. which side its attached to) on one layout, it also changes it in the other - Doh!

    So the next avenue is to try and change the anchor properties (i.e. which side its anchored to) in an event. However this is not possible - you can only enable/disable anchors.

    The next strategy was to create two anchors on each button, and only enable the appropriate one. But you cant only create one anchor on an object.

    Does anyone have any more ideas?

    NB:Letterbox scaling is not an option has it to be full screen with no black bars, and make best use of space.

    Help much appreciated.

  • Does anyone know where the events for orientationchange and resizing are? Looked under System and Browser objects.

    Please dont tell me one has to poll the screen width/height every tick - in an event driven framework this would be crazy....

  • Why is it that when I flip from portrait to landscape the screen goes black and nothing shows until I restart the web app.?It will flip once but any subsequent flips it turns black.I am exporting in scale letterbox mode.

    I get the same problem with R99 - if I switch from portrait to landscape a few times, get a black screen, and have to refresh.

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