Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-14-2011, 08:40 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
More tilelayers[] functionality needed

I am developing a platformer / sidescroller. The blocking tiles in my level are above layer 0. I do not want to place blocking tiles on layer 0 beneath my other tiles just to create the blocking effect. My projectiles use tiletype(tx,ty) to check collisions, but there is no support for tiletype above layer 0.
Quote:
Originally Posted by Stefan View Post
It's made so that tile layers above zero are not blocking because they are for decoration
Please add support for level.tilelayers[i].tiletype(tx,ty).

I would rather not have to create a scripted version using level.tilelayers[i].tiles[x,y] since that would be much less efficient.

Also, please add support for parallax scrolling.
http://en.wikipedia.org/wiki/Parallax_scrolling
Perhaps something like this:

level.tilelayers[i].parallaxscrolling = true;

Then the layers could be scrolled by simply adjusting the x and y of each tilelayer:

level.tilelayers[i].x++;
level.tilelayers[i].y++;

This would allow me to create effects such as repeated scrolling backgrounds, moving clouds, etc. without using multiple npcs.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.