Please tell me a simple way the appearance of objects is similar transition.to in corona sdk. I want to object to appear gradually or easing discoloration from one to another color(for example to red, like object heating)
in corona its looks like:
shield= display.newRect( 180, 220, 10, 80 )
shield:setFillColor(150,0,50,80)
shield.name="gate"
shield.alpha = 0
transition.to( shield, { alpha=1, time=150 } ) -- object appears gradually
physics.addBody( shield, "static", lipElement )
group:insert( shield )
Working with the visibility of the object over time is possible only through MovieClip or are there other decision?
Comments
http://appcodingeasy.com/Gideros-Mobile/Gideros-GTween-with-easing
Likes: duke2017
GTWeen is an amazing library, however if you want to keep playing with your code that you might have written using C*SDK, you can look at Shandy (The C*SDK compatibility layer) it allows you to run most of your display related code in Gideros. Here is a video of the code you posted running in gideros.
Likes: duke2017
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
https://play.google.com/store/apps/details?id=com.uglygames.slug
Shandy is a good idea, but I completely rewrote the code from the beginning on gideros)
Likes: gorkem
https://play.google.com/store/apps/details?id=com.uglygames.slug
Likes: duke2017
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
I've also (mostly) rewritten my corona game. Took about 2 weeks to convert 3000 lines of code. I was assuming Shandy would not be ready for a while...?
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
In fact while I was working on Shandy, I ended up with a pure Gideros Implementation of TableView in Lua (no plug-ins) this can be used on both Android and iOS and still look the same.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
I must say the main difference is that Gideros works whereas Corona is full of bugs! My code contained numerous workarounds for Corona bugs yet everything worked first time in Gideros! (and Corona bugs rarely get fixed despite multiple complaints on the forum: every bug I found had been highlighted at least 12 months previously) So congratulations on an amazingly solid product!
@OZApps: Thanks for that reply. Does Shandy implement physics yet? I had a look at your "what works" list on another thread which seems to indicate no. Is that still up to date?
Likes: duke2017
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
@john26 any markup will do, and "Step by step tutorials" would be best. In fact I'd say, put it in a blog of you so we can have a static link where anyone can point to. None did this exclusively before, but everybody is asking for it.
Likes: gorkem
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Of course it's up to you..