elementalcode

Members
  • Content Count

    2
  • Joined

  • Last visited

About elementalcode

  • Rank
    Newbie

Contact Methods

  • Website URL
    www.killabunnies.com.ar
  • Twitter
    miltoncandelero

Profile Information

  • Gender
    Male
  • Location
    Argentina
  • Interests
    Making gamez
  1. InteractionManager.prototype.mapPositionToPoint = function mapPositionToPoint(point, x, y) { var rect; // IE 11 fix if (!this.interactionDOMElement.parentElement) { rect = { x: 0, y: 0, width: 0, height: 0 }; } else { rect = this.interactionDOMElement.getBoundingClientRect(); } var resolutionMultiplier = 1.0 / this.resolution; // added an extra if, so we don't break normal behaviour if (this.interactionDOMElement.style.transform.includes("rotate(90deg)")) { // flipped rect.width and rect.height. Ez moneyz point.x = ((x - rect.left) * (this.interactionDOMElement.width / rect.height)) * resolutionMultiplier; point.y = ((y - rect.top) * (this.interactionDOMElement.height / rect.width)) * resolutionMultiplier; } else { // original code point.x = ((x - rect.left) * (this.interactionDOMElement.width / rect.width)) * resolutionMultiplier; point.y = ((y - rect.top) * (this.interactionDOMElement.height / rect.height)) * resolutionMultiplier; } }; I just flipped values until it worked. I want a bazilion dollars in non secuential bills... nah, jk, hope it helps ❤️ EDIT: Added an extra IF to check if the canvas was actually flipped or not
  2. It seems there are a lot of Cartoon Network games and AT&T (Turner) isn't happy about it