@oleg, thanks, your idea should work, although i think there needs to be a recursive call to make it work properly. i think i could indeed do it this way, so the question is if there is some built-in/faster/simpler solution.
function pulsePlayerScale()local makePlayerSmaller=GTween.new(player, .2, {scaleX=0.4,scaleY=0.4}, {delay =0, ease = easing.linear})end
Or calls like that do not affect perfomance and are normally garbage collected after tween ended?
function pulsePlayerScale()
GTween.new(player, .2, {scaleX=0.4,scaleY=0.4}, {delay =0, ease = easing.linear})end
> 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, how do we setup realtime multiplayer in 2018? I've checked some old forum posts, there are mentionings of noobhub, google play services, appwarp, etc. What to choose if I want to setup basic multiplayer shooter? Thx! p.s. @totebo what do you use for NoBrakes.io?
> 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
Gideros Unite connects user-to-user without server?
Isn't server mandatory for reliable global multiplayer?
> 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)
Do you mean the menu location? The menu is at the bottom left, but I might move it - it's just a prototype soccer game.
@Apollo14 One of the devices is a server and other(s) are a client. The client sends control data back to the server and it sends out changes, etc it all works asynchronously. You have to beware of disconnecting servers, clients and the possibility of out of order or missing packets (if you use upd). There can be multiple clients - or in fact multiple servers if you like.
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
@Apollo14 у юніті є свої платні ігрові сервера і там гарна документація - подивись, або можна дешевий варіант зробити свій хост з БД для реєстрації адрес пристроїв до якої гра буде підключатись і записувати адресу гравця-сервера а бо читати її
Guys, can you help me to understand how to use math.sin in games? How to make sprite simply float up and down using math.sin?
> 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)
@oleg it doesn't work at all, it shakes, but no magnitude:
local t,speed=1,1
floatingStone:addEventListener(Event.ENTER_FRAME, function()
t+=1
floatingStone:setY(math.sin(t*speed))end)
> 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)
Remember, you must dispose of audio files when they're no longer needed and clear any references to them. Assuming the table structure above is used to organize and preload sounds, the following loop will dispose of the audio handles:
for s = #soundTable,1,-1do
audio.dispose( soundTable[s]); soundTable[s]=nilend
Do we need to "dispose audio" in Gideros somehow? Isn't it disposed after we make 'soundTable=nil'?
> 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)
local gametune = Sound.new("DST-AngryMod.mp3") gametune:play(0, true) gametune = nil collectgarbage()
Why corona guys use 'audio.dispose' instead of standard Lua's 'collectgarbage'?
> 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
Guys how would you make changable event system in game? For example on July 4th we want to make x2 score bonus, on Christmas 50% discount for in-app purchases, etc. (and we'll need to add new unknown events later on)
First thought that comes to me is to do it via UrlLoader, keeping .txt and .jpg files somewhere on my host, with consistent url. It's very primitive, I'm not sure if it's a good solution. There're some gaming database services, I'm not familiar with them yet. Do they provide better solution?
> 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)
Comments
if stage:getChildIndex(sprite)==stage:getNumChildren() then
-- top sprite
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Fragmenter - animated loop machine and IKONOMIKON - the memory game
for i = #stage:getNumChildren, 1, -1 do
if stage:getChildAt(i):hitTestPoint(x,y) then
print ("bingo")
break
end
end
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
your idea should work, although i think there needs to be a recursive call to make it work properly. i think i could indeed do it this way, so the question is if there is some built-in/faster/simpler solution.
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)
I've checked some old forum posts, there are mentionings of noobhub, google play services, appwarp, etc. What to choose if I want to setup basic multiplayer shooter? Thx!
p.s. @totebo what do you use for NoBrakes.io?
"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)
ти цей приклад бачив??
http://giderosmobile.com/forum/discussion/comment/28861/#Comment_28861
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg
https://deluxepixel.com
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Isn't server mandatory for reliable global multiplayer?
"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)
Do you mean the menu location? The menu is at the bottom left, but I might move it - it's just a prototype soccer game.
@Apollo14 One of the devices is a server and other(s) are a client. The client sends control data back to the server and it sends out changes, etc it all works asynchronously. You have to beware of disconnecting servers, clients and the possibility of out of order or missing packets (if you use upd). There can be multiple clients - or in fact multiple servers if you like.
Likes: Apollo14
https://deluxepixel.com
Likes: Apollo14
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
How to make sprite simply float up and down using math.sin?
"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)
але для прижків краще використовувати таку формулу :
playerY += jumpSpeed
jumpspeed -= gravityPower
Likes: Apollo14, SinisterSoft
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
It doesn't work for me:
"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)
local t,speed=1,1
stage:addEventListener(Event.ENTER_FRAME, function()
t=t+1
floatingPic:setY(math.sin(t*speed))
end)
http://giderosmobile.com/forum/discussion/4768/sine-waves/p1
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.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)
I'll play with its values in the morning. Thanks @oleg !
"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://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.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)
gametune:play(0, true)
gametune = nil
collectgarbage()
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.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: antix
https://deluxepixel.com
For example on July 4th we want to make x2 score bonus, on Christmas 50% discount for in-app purchases, etc. (and we'll need to add new unknown events later on)
First thought that comes to me is to do it via UrlLoader, keeping .txt and .jpg files somewhere on my host, with consistent url.
It's very primitive, I'm not sure if it's a good solution. There're some gaming database services, I'm not familiar with them yet. Do they provide better solution?
"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, SinisterSoft, totebo
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: Apollo14, oleg
"
Uploading finished.
snd/fon3.ogg: Sound format is not supported.
stack traceback:"
the windows -ogg works on the player, android does not work ??
--------------------------
I realized that you need to enable the plugin
http://giderosmobile.com/forum/discussion/7129/ogg-music-playback
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: Apollo14, oleg, antix