yumyum's Forum Posts

  • 10 posts
  • Ah ok that explains it.

    Yes it seems to work after Android 3.0, I tried on my tablet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In the event 242 (movement of visual aspect), add one condition: "For each Enemy01".

    Without this condition Enemy01 represents all matching instances, and in this case I'm not sure what Enemy01.ID represents.

    The subevent is then run only one time, with Enemy01 being all matching instances.

    Well I'm new to construct so I'm not sure what happen exactly in this case.

    All I know is that with ForEach you run the following subevent one time for every matching Enemy01, and that's what you want :)

  • Perhaps, on two touches at the same time (not sure you can even do that)

    You can with my plugin :)

  • I made a plugin to support multi touch, with an example on how to do "pinch to zoom"

    here.

    The pinch to zoom is not very good, it can probably be smoother.

  • Multi Touch

    This is a modified version of the standard Touch plugin, to support Multi Touch.

    It works on iPhone, iPad and my android tablet, but on my android phone the native browser pinch/zoom is used and I never see more than 1 touch. If you know why, please tell me :)

    It adds one event: Touch move (when the finger moves)

    It adds 3 expressions:

    • TouchCount: the number of touches (fingers touching the screen)
    • TouchX(n,[layer]): the X coordinate for touch number n
    • TouchY(n,[layer]): the Y coordinate for touch number n

    layer parameter is optional, like for the original Touch.X and Touch.Y

    (not tested)

    capx example, with "pinch to zoom" and "drag to pan".

    TouchX(0) will be the X coordinate for the first touch

    TouchX(1) will be the X coordinate for the second touch

  • That would be awesome :)

  • You edit preview-fs.html and comment or remove this line:

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi" />

    After that you can zoom, but you still can't drag to pan the view <img src="smileys/smiley19.gif" border="0" align="middle" />

    Not sure why.

    Panning is probably possible with the "in touch" event, so zoom would be handled by the browser and panning by constuct.

    Multi-touch support in construct would be nice though.

  • Ah thanks, I'll do that !

  • I'd prefer a pinch to zoom, people are used to it and it doesn't take any space on screen.

    Editing the index.html is fine, but it won't work with the preview I guess.

    It could be a layout option in construct: "allow user to zoom: yes/no".

  • Many games on mobiles use the "pinch to zoom" feature.

    I didn't see any event for pinching, how is it possible to do it myself ?

    One difficulty is that we cant get both finger coordinate I think, well I just began to use construct 2 a few days ago so I'm not sure :)

    On solution would be to let the browser do the work, but for some reason my construct app don't zoom as other web pages do.

    It may have something to do with the meta tag "viewport" attribute "user-scalable", but I don't see how to set that from construct (and it would be nicer to control the pinch event also).

    Ah and is there a mouse wheel event ? Would be nice to zoom also.

    (to the dev: great software btw, you're making my life more beautiful)

  • 10 posts