themacvictror's Forum Posts

  • Hi, following my former request about zoom to pinch, i finally made an implementation (well, sort of).

    But i have more questions now : <img src="smileys/smiley2.gif" border="0" align="middle" />

    1) Is my implementation right ? Seems a bit "strange"

    2) In "zoomSheet" sheet, i hard-coded instructions for only one sprite, named "HUNTER", but i need this rules applied to any of my sprite and obviously the zoom will be done ONLY on the selected sprite (i think that FIRST TOUCH select the sprite). How can i accomplish this ?

    3) Can someone help me to add also sprite rotation in the sheet ?

    Thanks in advance !

    dropbox.com/s/h4qh9tbetww7vg5/bn.capx

    TheMac

  • BUMP !!

    TheMac

  • Ehm..dear LittleStain

    it "almost" works, but there's something strange about behaviour of my "simplified" pinch :)

    dropbox.com/s/2zax0y8x5005rtl/test.vic.zoom.pinch.capx

    (it's on layout2 and sheet2)

    Thanks for help !

    TheMac

  • LittleStain

    still lost with the "DAMN" example :-) (because i don't want to pan)

    could it be easier with "on nth touch" (with n =1 = 2nd touch ) ?

    Thanks !

    TheMac

  • LittleStain

    Gosh, i'm having a hard time trying to replicate touch (and NOT pan like in the example) on every sprite of my app :(

    And then i'll even have to add rotation events.

    The problem is i find also very hard to replicate the PINCH by mouse so i have always to exporto via cocoonjs. 10minutes to test a little event change :(

    Is there a way to emulate pinch via mouse (eg. pressing ctrl or shift) ?

    I'm lost :(

    Thanks !

    TheMac

  • Hi all,

    i saw examples in new releases of C2 , both the Pinch to Zoom and the Rotate Example.

    Is there a way to implement BOTH on any sprite ?

    I have 15 sheets, i'll have to repeat the events for every sheet and every sprite ? or should i add a behaviour ?

    What's the most efficient way ?

    Thanks !

    TheMac

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes !

    It works. To be honest i did only a little test, but that seems to do the trick :)

    I'm currently engaged in a former application, so i'll soon come back to it.

    Meanwhile, really thanks !

    TheMac

  • septeven

    Thanks ! I'll check it soon. Seems neat :)

    I'll report asap !

    TheMac

  • Super BUMP !

    TheMac

  • Tom

    Ashley

    TheMac

  • bump ! I'm still stuck !

    I ask for help, i trusted scirra and have paid for full version.

    But support si quite lacking for my needings.

    What's wrong with me ?

    TheMac

  • bump

  • BUMP !

    Ashley

    Is this request so impossible to fulfill ???

    Don't understand.

    Thanks.

    TheMac

  • I had another idea.

    Using the object browser.executeJS can i execute "LINE BY LINE" the following instructions ?

    // Note: This example requires that you consent to location sharing when

    // prompted by your browser. If you see a blank space instead of the map, this

    // is probably because you have denied permission for location sharing.

    var map;

    function initialize() {

    var mapOptions = {

        zoom: 6

    };

    map = new google.maps.Map(document.getElementById('map-canvas'),

          mapOptions);

    // Try HTML5 geolocation

    if(navigator.geolocation) {

        navigator.geolocation.getCurrentPosition(function(position) {

          var pos = new google.maps.LatLng(position.coords.latitude,

                                           position.coords.longitude);

          var infowindow = new google.maps.InfoWindow({

            map: map,

            position: pos,

            content: 'Location found using HTML5.'

          });

          map.setCenter(pos);

        }, function() {

          handleNoGeolocation(true);

        });

    } else {

        // Browser doesn't support Geolocation

        handleNoGeolocation(false);

    }

    }

    function handleNoGeolocation(errorFlag) {

    if (errorFlag) {

        var content = 'Error: The Geolocation service failed.';

    } else {

        var content = 'Error: Your browser doesn\'t support geolocation.';

    }

    var options = {

        map: map,

        position: new google.maps.LatLng(60, 105),

        content: content

    };

    var infowindow = new google.maps.InfoWindow(options);

    map.setCenter(options.position);

    }

    google.maps.event.addDomListener(window, 'load', initialize);

    And then, how can i translate the html declarations :

    1) <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script>

    and

    2) <body>

        <div id="map-canvas"></div>

    </body>

    ?

    Thanks, hope i'm clear :)

  • Bump , can't use litetween :( !

    TheMac