Gideros get logical dimensions11/3/2022 ![]() ![]()
If self:hitTestPoint(event.x, event.y) then [[ĭrag the shapes around with your mouse or fingers In a nutshell, it puts 5 rectangular shapes in random positions and attaches mouse event handlers to each of them so that they are draggable. From now on we assume that you are familiar with this example and know how it works, so experiment a bit with it if you need. Gideros get logical dimensions code#You should open it or start a new project with the same properties (320x480 logical dimensions etc.) and copy the code below. The set-upįor simplicity we modify an example that comes with Gideros, the Drag Me example. ![]() Gideros get logical dimensions free#This tutorial was made during the Sharebruary program of Gideros offering free limited licence for people creating tutorials during February of 2014, more info here:. I think reading this tutorial is also a good way to understand better some other features of Gideros (object oriented programming, sprite hierarchy, etc.). This tutorial should help you to use renderTarget in many other ways as well, not just simple clipping. As it's not evident how, I decided to make this tutorial to explain the details. On the other hand with the renderTarget feature you can actually do any kind of clipping. In Gideros you can do many things very simply and fast, yet clipping is an important feature that is not yet implemented in a straightforward way. Gideros get logical dimensions how to#Nevertheless this tutorial remains to be a good introduction on how to use renderTarget. Remark: since the original publication of this tutorial, real clipping capability was added to Gideros, thus now it's easy to clip using the Sprite:setClip function, see details. This tutorial is assuming a beginner level knowledge of Gideros, although if you are familiar with any programming language/framework, you should be able to understand most of the codes and the tutorial. To start to develop your games in Gideros for free, go to. Gideros is a cross-platform mobile lua rapid game-development framework (currently for android/ios). This is a tutorial about how to use renderTarget in Gideros, especially to achieve clipping.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |