Home Tutorials Download Forum Documentation Wiki Blog
Introduction To The LUA Metatables: Default values in the declaration
21st September, 2011 in Scripting, Tutorials

This tutorial is a small extension to the previous tutorial about Lua metatables. It show you another way to declare a metatable, how to add default values in your metatable.

Introduction to the LUA metatables: The URL example.
21st September, 2011 in Scripting, Tutorials

This tutorial teach you an easy way to manage your URL parameters in your application by using LUA metatables.

Fake the Editor to make it believe it is a device
13th September, 2011 in Scripting, Tutorials

Sometimes, it is boring to test your script if your game targets several devices, because you have some “if ( android ) then elseif ( iphone )…” in your code for instance.
There is an easy trick to make your script thinking that it is running on a specific device.

Buttons normal/pressed textures managment
7th September, 2011 in HUD, Scripting, Tutorials

Having buttons in your HUD is fine for your application to work, but it’s better when the user can have a feedback of his actions. That’s the goal of this tutorial, changing the texture of a button when the user clic it with his mouse, or tap it with his finger.

Mix mouse and multitouch
16th March, 2011 in Scripting

When creating a game for a mobile device with multitouch capabilities, it’s difficult to test the code inside ShiVa Editor on a computer with no multitouch. This tutorial explains you how to simulate the multitouch using the mouse.

Get path, filename and extension
16th March, 2011 in Scripting

It is often interesting when you have to download an image to put into cache to get the name and the extension of the file in the URL.

Rotate the viewport
16th March, 2011 in Scripting, System

Learn how to rotate the viewport according to the device rotation using the accelerometer

Add/Set a hashtable value easily
16th March, 2011 in Scripting

When you want to set a key/value in a hashtable, you have to check if the key is already existing before doing a hashtable.set (), because if the key doesn’t exists, the function won’t do anything.

Get an Xml without using states
16th March, 2011 in Basics, Scripting

Here is a very easy to use sample of script to get an xml. Instead of using states, I recommend using handlers…

Single/Double tap management
14th March, 2011 in Basics, Scripting

This tutorial explains how to manage a single/double (or more) tap on a the screen of a mobile device.
Note this tutorial can be applied to a single/double click with the mouse of your computer.

Page 1 of 212