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
How to make this sliding effect?
Hi guys! Do you know how to make such sliding effect? (white lines slide from left ...
Answered ✓
14
57
Another Shake
Folks, I wasn't too happy with some of the other "shake" examples that I'd seen so ...
4
376
Is it a good practice to complement internal Gideros classes?
Hi guys! Is it a good practice to complement internal Gideros classes instead of using global ...
Answered ✓
3
73
Questions about lua
Sorry for the baby question: How to check that the table has a function? ...
Answered ✓
3
44
BBCode TextField
Whether there is a plugin or an example, format the text with bbcode tags? [b]bolded text[/b] [size="30px"]Large ...
Answered ✓
3
64
Show a sprite being hit like in the arcades.
Ok, so sometimes you shouldn't believe everything you read. For example, in the Gideros instructions it ...
3
36
Multi-font fonts !
When programming a game you need to pick the right font that matches your game, ...
4
207
Audio class
Hi.. Here is a class that will help you managing sounds on your game. It gives ...
4
444
my Scroll class hello girls! >:) I decided to share my class for scrolling https://youtu.be/CcQJG84CrG4 class: https://github.com/razorback456/gideros_tools/blob/master/scrolling/assets/classes/scrolling.lua example of a project: https://drive.google.com/open?id=1qLd16FI7WcJ4Ji1rN1Qz-XqmNwpFlsOr
1
74
my generator is a labyrinth hello girls I decided to share my game code with the labyrinth https://drive.google.com/file/d/1DSvZsF34c17ZecSeFccvyk6lLxxpZSC5/view?usp=sharing https://github.com/razorback456/gideros_tools/tree/master/labirynt%20test https://youtu.be/tdV0R84XFsk
Answered
2
81
Simple BoxNormalCollision function
Maybe someone find it useful, I used it in my game that I never ...
Answered
7
99
Just another "Circle"
I wanted to create my own circle class but I thought it would be cool ...
Answered
12
256
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
210
Another Movie Clip
Hi, this is Another Movie Clip for Gideros: featuring texture switching, coroutines and TNT Animator compatible. Here ...
Answered
19
446
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
351
safeSound
Some platforms may have problems loading sound, for example different web browsers. You may ...
1
54
HTML5 Portrait view...
When I write my games that need to work in either orientation I use a ...
4
70
Display image from URL
Hey guys! So recently I've run into the need to display from an URL. I have ...
Answered
7
99
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
257
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
198
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
106
Animations
I'm working on a Lua extension to TexturePack which will make frame-by-frame animations easier. I ...
Answered
13
250
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
135
Layout and texturepacks
Hi, I'm pointing this at @n1cke but maybe someone else have a good idea for ...
Answered
2
56
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
127
Monospace font jumping around
I'm using a monospace font which counts down a number. Even though it's monospace, its ...
Answered ✓
6
101
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
119
Attempt on Localization
Hello, wanted to try something on localization in Gideros and here is the result of my ...
12...45
122
3.1K
Custom hero clothes with TNTAnimator class?
Hi guys! IMO customizable skin system is extremely important part of game design. Currently in many ...
Answered
3
110
"SLICE9" class
скачати клас slice9 можна тут: https://github.com/slice9 download slice9 class here: https://youtu.be/ga9iZ-BMgjY maybe someone has done ...
12
31
527