Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
problem scaling — Gideros Forum

problem scaling

gqqdartgqqdart Member
edited March 2016 in Building a team?
Hello all!
English is not my native language, sorry, help please
problem scaling
local testbg = Bitmap.new(Texture.new("images/testbg.png", true))
testbg:setAnchorPoint(0.5, 0.5)
local halfWidth = application:getContentWidth()/2
local halfHeight = application:getContentHeight()/2
testbg:setPosition(halfWidth, halfHeight)
stage:addChild(testbg)

Comments

  • ar2rsawseenar2rsawseen Maintainer
    In Gideros Studio right click on your project name and select properties, there Graphics and Scale Mode

    and select scale mode based on what you need (probably letter box):
    http://docs.giderosmobile.com/automatic_screen_scaling.html
  • gqqdartgqqdart Member
    edited March 2016

    In Gideros Studio right click on your project name and select properties, there Graphics and Scale Mode

    and select scale mode based on what you need (probably letter box):
    http://docs.giderosmobile.com/automatic_screen_scaling.html
    I do everything by the book Gideros Mobile Game Developmen the author of the book in pictures everything is fine, I even source code from the book, it does not work just as the author of the book.
    there in the beginning of the code, too, the author advises put settings and like letterBox, too, did the setting.
    I just want to deal with us in Russia on Gideros there is not a single community all over :( Corona SDK, and I liked it just GIDEROS super ...
    I newbie in Lua because very accurately. I want to understand everything.
    sorry for the English.
  • ar2rsawseenar2rsawseen Maintainer
    @gqqdart Privet, ja kak raz avtor etoj knige i jesho pri etom znaju Russkij :)

    Tak chto esli tebe budet legche, mozhesh zadavatj voprosi i na russkom tozhe.

    Tut jestj esho paru russko govorjashih developerov, naskoljko ja znaju.

    Likes: gqqdart

    +1 -1 (+1 / -0 )Share on Facebook
  • gqqdartgqqdart Member
    edited March 2016
    класс вот это удача, спасибо очень рад, приятно с таким человеком познакомится :)
    отличная книга хоть и единственная :)
    Я хотел бы узнать книга вроде как 2013 года не сильно ли изменился GIDEROS, не будет ли у меня серьезных сложностей, если я буду по этой книге дальше изучать GIDEROS?
    MarhBalls cтал очень крутой игрой! сегодня скачивал...
  • ar2rsawseenar2rsawseen Maintainer
    Za iskljuchenijem togo 4to Gideros stall bezplatnim i paru novih novovvidenij, kak 3d, Path2d itd, nechego osobe neizmenilosj. Vjo s4itaj 4to takzhe.

    Tak rasskazivaj, 4to u teba nepolichajetso? :)
  • gqqdartgqqdart Member
    edited March 2016
    Za iskljuchenijem togo 4to Gideros stall bezplatnim i paru novih novovvidenij, kak 3d, Path2d itd, nechego osobe neizmenilosj. Vjo s4itaj 4to takzhe.

    Tak rasskazivaj, 4to u teba nepolichajetso? :)
    там в книге на странице 37 это изображение на котором написано 800x480 я так понял что оно четко отмаштабировалось по размеру экрана, а у меня вот там как на скриншоте остались большие пробелы со всех сторон.
    вот продолжая думал дальше будет ответ но все опять криво.
    прилагаю скриншот и код если не трудно посмотри пожалуйста.


    Screenshot_7.png
    732 x 649 - 73K
    rar
    rar
    MarshallBallsClone.rar
    305K
  • ar2rsawseenar2rsawseen Maintainer
    Aha, tvoja problema v Logical dimension.
    Logical dimensions v settingah vegda podajutsa v portrait orientacii.
    to estj oni dolzhni bitj 480x800 a ne 800x480 kak u teba,
    Pomenjaj i vsjo budet kak nado ;)
Sign In or Register to comment.