Skip to main content

Posts

Showing posts from September, 2013

Parallax effect for any gaming language

Parallax effect with tiling is one of the key requirement for today's endless gaming so i decide to create my own and after some experiment i created   effect is created in as3 but it can be easily converted in any language is small amount of time easy way to create any endless running parallax scrolling background is very easy ===================================================== 1)step one get the device width or height according to screen size 2) second step get the number of titles  numberoftile = screensize/widthoftile; 3) increase number of tile by one numberoftile+=1 or  numberoftile++ 4) draw all tiles inside a container or root element 5) update the tile container based on speed;   for more here is my as3 class just copy and paste in a new as3 file and name it as parallax as3 all code below //package package  { import flash.display.Sprite; import flash.display.MovieClip; import flash.events.Event; import flash.displa...