Guys how can we get user's country? For example if he is from Australia, or from UK, etc.
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Not sure, but you can get the language: osLanguage=application:getLanguage()
what is the difference between 'application:getLocale()' and 'application:getLanguage()'? update: uh, I got it: while getLanguage provides us just "en" string, getLocale provides a little more detailed string "en_US","en_AU",etc. it looks like getLanguage is pretty much obsolete, isn't it?
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
hi, is there a way to achieve negative blend mode with setBlendMode function? that is, i want that an object has inverse color of what lies below it (like the crosshair cursor set by application:set("cursor","cross") behaves).
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@oleg, setBlendMode(Sprite.ONE_MINUS_SRC_COLOR,Sprite.ONE_MINUS_DST_COLOR) did not do the job for me. (it looked like that this is what you suggested, or wasn't it?)
Guys, if admob ad wasn't received by user and we call 'showAd', it will just do nothing or app will crash? Is it safe to call it without checking triggers? (I see nothing happens on Gideros Player, but I'm not sure if it's still safe after apk compilation)
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Guys, what is "GSFXR" plugin? I see that it plays '.sfx' files instead of regular wav/mp3. Are .sfx files better than wav/mp3? Do we ever need them?
local sfx1 = Sound.new("testfx1.sfx")
sfx1:play()
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
It is rather easy, use Path2D to draw two 180° arcs for the progress background, another Path2D on top to draw the progress itself (again two arcs of 180°*(progress ratio)), then a textfield covering the whole circle with vertical and horizontal centering enabled for the percentage.
thanks @hgy29 , for me it seems that if there is another sprite above the sprite then hittespoint is still triggered. the 'true' setting only checks mask/clip according to the reference, not 'real visibility'.
Comments
Likes: Apollo14
Fragmenter - animated loop machine and IKONOMIKON - the memory game
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: Apollo14
https://deluxepixel.com
Dislikes: Apollo14
update: uh, I got it: while getLanguage provides us just "en" string, getLocale provides a little more detailed string "en_US","en_AU",etc.
it looks like getLanguage is pretty much obsolete, isn't it?
Likes: kinrpg
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Why in my case self:addChild(self.anim) doesn't work? (self.anim isn't shown when I run player)
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
is there a way to achieve negative blend mode with setBlendMode function?
that is, i want that an object has inverse color of what lies below it (like the crosshair cursor set by application:set("cursor","cross") behaves).
Likes: Apollo14, kinrpg
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://docs.giderosmobile.com/reference/gideros/Sprite/setBlendMode#Sprite:setBlendMode
@hgy29 may know...
https://deluxepixel.com
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://deluxepixel.com
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Fragmenter - animated loop machine and IKONOMIKON - the memory game
все залежить від того який ефект ти бажаєш, якщо ти хочеш ефект "перекриття" -як в фотошопі, то це приблизно так:
Likes: Apollo14
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Fragmenter - animated loop machine and IKONOMIKON - the memory game
setBlendMode(Sprite.ONE_MINUS_SRC_COLOR,Sprite.ONE_MINUS_DST_COLOR)
did not do the job for me.
(it looked like that this is what you suggested, or wasn't it?)
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Run a snipet with your own pictures
local topTex = Texture.new("d4.png",true)
local btmTex = Texture.new("d3.png",true)
and choose the effect you like
***
I suggested:
sprite:setBlendMode(11, 4)
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
the 'masking' sprite should be white btw?
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
(I see nothing happens on Gideros Player, but I'm not sure if it's still safe after apk compilation)
There are admob ad formats like "Native Advanced"&"Native Advanced Video". Can we call them?
(they're not mentioned in Gideros documentation)
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
"Native Advanced"&"Native Advanced Video" - адмоб вже не підтримує
Likes: Apollo14
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
I see that it plays '.sfx' files instead of regular wav/mp3.
Are .sfx files better than wav/mp3? Do we ever need them?
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
https://www.dropbox.com/s/60azb6gkcrra915/gsfxtool.zip?dl=0
It makes great 'retro' style sound fx - You will see the sound file is tiny!
Likes: Apollo14
https://deluxepixel.com
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: SinisterSoft, Apollo14, totebo
Likes: oleg, hgy29, antix, Apollo14, totebo
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Fragmenter - animated loop machine and IKONOMIKON - the memory game