Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Code snippets - Gideros Forum

Code snippets

Everything that you can plug into your app without changing much or at all.
Discussion
Started By
Replies
Views
Most Recent
Gesture zoom
demo test: https://youtu.be/oofeZeUtynU https://github.com/razorback456/gideros_tools/blob/master/lupa.lua --[[ Scale by gesture клас Масштабування жестом v.1.0 https://simartinfo.blogspot.com/p/v.html author (c) https://www.facebook.com/AndroidMobileGame" ВИКОРИСТАННЯ: ------------------------------------ using: --Lupa.new(number of fingers) ...
11
137
Just another "Circle"
I wanted to create my own circle class but I thought it would be cool ...
Answered
10
136
Another Movie Clip
Hi, this is Another Movie Clip for Gideros: featuring texture switching, coroutines and TNT Animator compatible. Here ...
Answered
19
326
New 'Megacool' plugin - how to use it?
Hey guys! I'm testing new awesome Megacool plugin. Just one little question - what should I insert ...
Answered
22
266
safeSound
Some platforms may have problems loading sound, for example different web browsers. You may ...
1
41
HTML5 Portrait view...
When I write my games that need to work in either orientation I use a ...
4
44
Display image from URL
Hey guys! So recently I've run into the need to display from an URL. I have ...
Answered
7
70
Spine vs Spritesheet animation perfomance
Hey guys! I've just tested Spine perfomance vs traditional spritesheet animation (inspired by this video) Personally, I've ...
Answered
15
155
New 'Threads' plugin - how to use it?
Hi guys! I don't get why value of 'a' isn't changed in the end? require "Threads" local thread ...
Answered ✓
4
144
RPG-styled dialogues [how to?]
Hi! I was trying to create RPG-styled dialogue class, like here: Easiest solution I was thinking about: local ...
Answered ✓
3
68
Animations
I'm working on a Lua extension to TexturePack which will make frame-by-frame animations easier. I ...
Answered
14
184
Social 'Share' buttons - how to?
Hi all! Social share buttons have become an industry standard. How do we integrate them in Gideros? One ...
Answered ✓
7
98
Layout and texturepacks
Hi, I'm pointing this at @n1cke but maybe someone else have a good idea for ...
Answered
2
37
How would you do a "swipe to unlock" control?
I think of a draggable button that triggers the action when moved to a certain ...
Answered ✓
9
94
Monospace font jumping around
I'm using a monospace font which counts down a number. Even though it's monospace, its ...
Answered ✓
6
77
Fastest method to get distance between objects?
Hi guys! I've checked 3 methods of getting distance between two points. Number of tests: 1000000 testDistance1 2.1159432063358 testDistance2 1.6703890134563 testDistance3 1.6123716717074 I have 2 ...
Answered
9
81
Attempt on Localization
Hello, wanted to try something on localization in Gideros and here is the result of my ...
12...45
122
2.8K
Custom hero clothes with TNTAnimator class?
Hi guys! IMO customizable skin system is extremely important part of game design. Currently in many ...
Answered
3
73
"SLICE9" class
скачати клас slice9 можна тут: https://github.com/slice9 download slice9 class here: https://youtu.be/ga9iZ-BMgjY maybe someone has done ...
12
31
360
'Rocky Climb' mechanics - how to?
Hey guys! I'm trying to understand basic 'Rocky Climb' mechanics (https://play.google.com/store/apps/details?id=com.estoty.rockyclimb ) * How would you generate ...
Answered
1
99
Customizable hero clothes - how to?
Hey guys! How can we make hero customizable? (considering that it has many animations: walk, jump, ...
Answered
7
114
Knife Hit mechanics - how to?
Hi guys! How would you create 'Knife Hit' prototype? (original gameplay is here: https://www.youtube.com/watch?v=o7XB4_HgBoI (I've attached my current gproj ...
Answered
6
191
Zoom effect like in Sinister Soccer
Okay Mr Houdini how do you do that zoom effect? B) Can you share ...
Answered
3
109
Facebook Instant Games: A brief tutorial to get started
Hi guys, I've successfully added Scrappy Cat, a game I've previously released on web and mobile, ...
Answered
9
744
Does Scenesmager not remove the previous sprite?
I downloaded a very cool scene management code package that you have here on the ...
Answered ✓
15
155
Full screen on macOS
If you're using "letterbox" scalemode (aren't we all?) and want application:setFullScreen() to completely fill the ...
Answered
2
89
Button class is (multitouch)
my advanced version: --[[ class button v 1.3 https://simartinfo.blogspot.com/p/blog-page_23.html author (c) https://www.facebook.com/AndroidMobileGame Usage: ------------------------------------ local btn1= Button.new(Bitmap.new(Texture.new("img/gui_48.png"))) stage:addChild(btn1) btn1:addEventListener("clickDown", function(e) e:stopPropagation() ...
4
179
Gideros Unite: framework for multiplayer mobile games
Finally I can lift it from my shoulders, been bothering me for some time, constantly ...
123
82
5.1K
Collision error
Hello! I recently stumbled upon a problem. I get the following error whenever I use this ...
Answered ✓
3
62
Gideros Mobile: comic book with page curl effect
FlipPageView: create simple comic book with page curl effect -Examples: --create new object local flipview = FlipPageView.new() --add some ...
12
31
4.1K