Geo's Recent Forum Activity

  • This is a borderline feature request / bug. But I couldn't find feature request forum, so here it is:

    #1

    Please add the option to remember the PhoneGap export settings of the project. Every time I export I have to manually type in the ID, Author Email, Author Name, Author URL, select the orientation and device.

    With the manual writing, especially if you have a longer domain name (like I have), there is a possibility to misspell things and end up with a completely different app package, which you discover late (like when you upload to android market) and have to redo all the steps.

    There should be, I guess, some project settings for this.

    #2

    Please focus on #1 as it is more annoying, then if you have time for #2, then: Also please add the feature of "Phonegap icon" so we don't have to manually replace the C2 cog icon all the time after the project was exported.

    #3

    Please add option to set the permissions tag in the PhoneGap config file (string should be fine, so if I type the value "none" then this line should be added to the config file:      <preference name="permissions" value="none"/>).

    This is important because otherwise the default android app will request all possible permissions from the user (read and modify contacts combined with full internet access as well as other scary stuff) and nobody will install it from the market.

    As it is now I have to manually edit the config file each time to add this line.

    #4

    If the above is implemented, then as a last step, please also auto-zip the entire exported folder so it is ready to be uploaded to PhoneGap. As it is now, we have to manually zip it.

    To sum up, the process of exporting to PhoneGap is quite cumbersome now, and it becomes annoying once the project reaches a certain size and it has to be tested more often. Right now the steps are:

    1. Choose export

    2. Manually type stuff in 4 edit boxes and select from 2 combos

    3. Replace the icon in the exported folder

    4. Add permissions line to the config in the exported folder

    5. Zip the exported folder

    6. Upload to PhoneGap, etc...

    Steps 2, 3, 4 and 5 should not be needed to be performed every time, IMHO <img src="smileys/smiley1.gif" border="0" align="middle" />.

    Please when time permits (hopefully soon <img src="smileys/smiley4.gif" border="0" align="middle" /> ) add these options.

    Many thanks in advance!

    Geo

  • Thanks Kyatric, the Anchor behavior indeed did the trick and I got the game to work EXACTLY how I want it to. I did read the tutorial, but somehow overlooked the Anchor stuff.

    It seems weird (and counter-intuitive) to me that things should work like this (i.e. that I need to anchor stuff around to prevent it from scaling even though I set parallax to zero), but as long as I can get it to work the way I want <img src="smileys/smiley1.gif" border="0" align="middle" /> it's all good.

    Cheers!

  • Thanks septeven, I ended up implementing something very similar. It's not very elegant, but it works <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Bumping an old thread... perhaps there's some new insight? <img src="smileys/smiley1.gif" border="0" align="middle" />

    Hey septeven, did you eventually manage to get this to work? I need this functionality too.

    Any hints for swipe scrolling on mobile devices?

    Thanks.

  • Hey Ashley,

    I'm having some problems wrapping my head around parallax / fullscreen too. It doesn't work the way I expect it to <img src="smileys/smiley1.gif" border="0" align="middle"> and I think it's buggy.

    Here's what I mean: CAPX.

    It contains 2 layers, one of which has parallax 0,0.

    Repro:

    Switch the project property "Fullscreen in browser" between "Off" and "Scale mode", and run the project.

    When "Off" it looks as I expect it to. Buttons on the zero-parallax layer show in the four corners.

    When "Scale mode", it looks very weird.

    Can you explain how this works, why is it like this?

    What I'm trying to achieve is a "fixed" (HUD / GUI) layer staying in place, and a moving layer moving around. I need this to work on "Scale mode" fullscreen.

    Thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually I just did a small test. What you say applies to buttons, but not to sprites (I have sprites instead of buttons on my project).

    So if you have a sprite on an invisible layer, it will still get the "on clicked object", making it need custom stuff.

  • Thanks Ashley - but I was hoping to avoid that (and I did, sort of). I managed to work around it by making the layout bigger and putting the instructions somewhere far off the normal viewport, and then I just scroll to the instructions, and then I scroll back to the game. This has the advantage that if I add something to the main screen, I don't have to remember to add custom stuff to it (hide it, check for visibility etc).

    So it's almost what you suggest, moving the objects away, except I didn't move the objects - I moved the thing that was supposed to be on top of them, so they don't overlap.

    However I still think that a mechanism to prevent the click or tap from "bubbling further up" (or in other words marking it as Handled) would be nice.

    Thanks!

  • Oh OK, got it. I actually WAS taking it literally, English is not my native language; now I see the other meaning <img src="smileys/smiley4.gif" border="0" align="middle" />.

    OK, not a bug.

    Cheers!

  • I was reporting a documentation bug, not a system bug <img src="smileys/smiley1.gif" border="0" align="middle" />

  • So guys, I have this Instructions button that makes visible a layer with some text that's placed on top of everything.

    The problem is that the user can tap through this opaque layer and activate the (now) invisible buttons (invisible because of the "instructions" layer) on the layers below.

    I don't want to create a layout with instructions because I want to keep the layout state.

    I'm looking, I think, for sort of a "handled" flag on the mouse event or something...

    Any hints?

    Thanks.

  • I'm interested in this as well. Specifically,

    1. Is there a way to write HTML 5 code such that the page intercepts the Menu, Back, and Search of the Android device?

    2. Does C2 support this?

    If #1 is possible, then I think it's C2 issue, not Phonegap issue.

  • The system expressions documentation says that "& doubles as logical AND". That is not the case, && generates error.

Geo's avatar

Geo

Member since 16 Dec, 2011

None one is following Geo yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies