Giter Site home page Giter Site logo

Comments (6)

rafalcieslak avatar rafalcieslak commented on May 23, 2024

I can confirm this issue. I expect the stretch_2d is supposed to be a very easy way to port a game to a device that uses a different resolution, without rearranging scenes and UI. Indeed it works well in most cases, but the touchscreen buttons are indeed working incorrectly. Given the fact there is such a wide number of touchscreen devices, this setting is probably particularly important for android platforms.
From my investigations it appears that while they display correctly, they will not react on touching. Probably the point of the problem is while the engine draws them properly stretched, the touch-detection mechanism is not aware of the stretch_2d value.

from godot.

 avatar commented on May 23, 2024

I guess I broke it at some point, though I guess besides fixing this I should work on a tutorial explaining different methods to stretch the screen

from godot.

amagnoni avatar amagnoni commented on May 23, 2024

It will be great.
But please, Prioritize a fix for touchscreenbutton.
Because without this is impossible to release a game for android with buttons on screen.
As a lame java developer i don't know where to look for fix this.

from godot.

reduz avatar reduz commented on May 23, 2024

i think it's fixed, please test

from godot.

amagnoni avatar amagnoni commented on May 23, 2024

Yeah! It's fixed! Thanks!
I think you can close this issue!

Can you help me on this post?
http://www.godotengine.org/forum/viewtopic.php?f=11&t=70&sid=e01a0d12cc1020eb71e3af510ca71e4a

from godot.

adolson avatar adolson commented on May 23, 2024

close

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.