nutmix's Recent Forum Activity

  • I feel very stupid asking this, as it seems so basic, but cant find it in the manual and doing a tutorial search for "scrolling" or "layer scrolling" doesnt turn up any relevant results.

    In the quest to simulate swiping left and right to bring in layouts from the left and right, I created 3 layouts, one for the game, and one left and one right. I could not find a way to scroll the layouts left and right (or even swap them).

    So now Ive created one large layout, plasted in a big bagroud image, and added some objects.

    There is no "player" or similar, its a puzzle game.

    1) The first problem is the window outline (in the editor) is always in top left corner of the layer outline. How do you move the window area to the center of the layer (which is larger than the window)?

    2) How could I scroll the layer ralative to the window based on user input? I can move an image on the layout by changing its X & Y, but then none of my objects move - only the image You cant select a layer as an object to increment or decrment its X. I saw a system->layers->set scale etc, but there is no set X.

    3) assuming there is an easy answer to 2) above, how do I stop it scrolling off into blank area? Do I have to keep a copy of the amount they have scrolled, and compare it to the width of my image on my layer etc.

    4) I went through the examples with came with the app, and I can see one called "platform 7(parallax). It manages to scroll the layer under the window, but there are no actions to do this, only actions to move a player which I dont have. Space Blaster also does it vertically, but cant see where - its magic!

    Does this mean I need to create an invisble player/spacechip to scroll the layer? If so how do I go about this?

    If someone writes a user guide for construct 2, I would buy it immediatly.

  • The tutorial scirra.com/tutorials/73/supporting-multiple-screen-sizes says that you can use a backgroud instead of the black bars, but I can't find a way to do this.   Doesnt matter where or how big my backgroud is, it still puts black bars in.

    Even if I could change the black bars to a different colour it would help. This is a showstopper, as the customer doesnt want black bars, but needs aspect ratio preserving scaling.

    I could only fine one post related to this with a partial solution with a project called SKELETON, but cant find the post again. Its close, but im not sure if its the right approach to take, or if it will work well with scaling and windows which are exactly the target size.

    Embarrassingly, I dont undestand the difference between layout size, window size and viewport. Is there a tutorial on this does anyone know?

    Has anyone writen a "letterbox-scale with custom background" plugin - I would only ever use this, it would save weeks of trial and error.

  • I added audio to a game - if you hit a button it plays a sound.

    It works find in FF, but doent do anything on Android 2.2 browser.

    Is android supported for sound does anyone know?

    Thanks!

  • E.g.

    variable X = 9

    OR

    (button touched

    AND variable Y = 0) -> do a long list of actions.

    then have one list of actions.

    However, If I do the what appears to be right, then I have to duplicate the actions in both blocks (which is horrible).

    I havent worked out how to share a capx yet. I have dropbox, but the only option to share a folder it gives is to share with a specific person, not everyone. Below is a link to the file, but I really hope noone can download it otherwise everyone can see everything!

    dropbox.com/s/o89d19qbbjzyphp/and_or.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've never been able to get any of those 'hide address bar' snippets working with C2's engine, can you link me to one that you know works?

    Ok, I'll try some out and let you know what I find.

    I saw that google.co.uk and will-hill.mobi managed to do it. I was thinking of using charles proxy to peek at their code.

  • Tried them all, and "on touched Object" coupled with "Use mouse input" property = yes seems to work.   The manual page descriptions of these events didnt mean anything to me, so could not go by that.

  • Brilliant, thanks. Got the Ajax working a treat too.

  • Wow, nice tutorial, thanks!

    With luck, the next version of C2 will have full screen suport on Android without adress bar ;) There is lots of js floating about to achieve this.

    I will look into the cocoon.js exporter.

    I just found the tutorial search page, this will save me a lot of posts!

    There is no tutorial yet for how to write apps for android (only ios) :(

  • I have a project which has some sprintes as buttons (e.g. bt_buy)

    I was using the mouse, i.e.

    Mouse-> on left button clicked on bt_buy -> ...

    This worked on PC not not on all mobiles.

    so I changed mouse clicked to "Touch -> Is touching bt_buy" and set "use mouse input" to Yes.

    But now when I click on my buy button in a browser with the mouse, it registers about 20 button press events!

    How do I support either clicking on a button in a browser with the mouse, or tapping the finger with a mobile, without incuring many taps, only one?

    What should I be using:

    1) is in touch

    2) on touch end

    3) on touched object

    4) is touching object

    5) on toutch start?

  • When you export the project for a webserver, it wraps the game in html/css/js etc.

    I need to modify the index.html that it procudes, as it doesnt work correctly for android (doesnt get rid of address bar for full screen apps).

    Is there any way to do this, other than to re-edit the files after every export?

  • When the game is launched, it is done from a web site where you are logged in (so have a session)

    The game needs to be able to access the session parameters to authenticate.

    Also, URL parameters migh say what launage to use, or what skin to load.

    how does one access & use these?

    If they are not accessable, then I cant see how construct 2 can be used to write games lauched by a logged in user.

  • I am not entirely sure that android browser can have no address bar.

    Interestingly most sites on android browser display no address bar once loaded, e.g. will-hill.mobi, or google.co.uk

    Some sites have the address bar glued to the page after loading, including any game generated by construct 2, www.bbc.co.uk, and even htc.com

    I assumed the problem was a bug in construct 2, but perhaps I was hoping too much for out of the box android support.

    Thanks for the js. how does one go about putting custom JS like this into the page generated by the export process? Does one just edit the exported pages each time?

    I can also try using charles proxy to analyse the difference between sites that work and dont work, but most of the minify the js, so it may not be possible.

    Thanks for the help!

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