Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #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 Admins 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
  #2  
Old 06-14-2011, 08:43 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Neat suggestions. +1
Reply With Quote
  #3  
Old 06-14-2011, 10:24 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by 0PiX0 View Post
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.
Zero(zokemon) already accomplished this on Atexia somehow. I think it was a mixture of tilelayers and an image behind them. it was pretty sweet.
Reply With Quote
  #4  
Old 06-14-2011, 10:37 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Cubical View Post
Zero(zokemon) already accomplished this on Atexia somehow. I think it was a mixture of tilelayers and an image behind them. it was pretty sweet.
He coded his own tile rendering, it was all showimgs.
Reply With Quote
  #5  
Old 06-14-2011, 10:42 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
Quote:
Originally Posted by Cubical View Post
I think it was a mixture of tilelayers and an image behind them.
Images cannot be displayed behind tiles, so it must have been more complex. Things like this should be kept as simple as possible, which is why I am asking for a practical method to be implemented.
Reply With Quote
  #6  
Old 06-14-2011, 10:45 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by 0PiX0 View Post
Images cannot be displayed behind tiles, so it must have been more complex. Things like this should be kept as simple as possible, which is why I am asking for a practical method to be implemented.
They can be, but it's not a simple process.
Reply With Quote
  #7  
Old 07-07-2011, 08:08 AM
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
Bump.

Stefan, please add support for parallax scrolling in tilelayers.

It's not like I can script a giant loop that changes 4096 tiles per scrolling tilelayer and moves them every 0.05 of a second. The loop limit would definitely be exceeded. If anyone has any ideas for a workaround that doesn't involve showimgs as tiles, I'm all ears.

Thanks.
Reply With Quote
  #8  
Old 07-07-2011, 08:16 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
What if you set layer 0s alpha to 0, then created a gui image and placed it behind the GraalControl object?

No clue if this would work, but it seems logical....kinda.
__________________

Reply With Quote
  #9  
Old 07-07-2011, 09:03 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by oo_jazz_oo View Post
What if you set layer 0s alpha to 0, then created a gui image and placed it behind the GraalControl object?

No clue if this would work, but it seems logical....kinda.
It does work, and has been done for a while for background images. It's not exactly the smoothest process though.
Reply With Quote
  #10  
Old 07-07-2011, 04:49 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
Thanks!
Seems to be working so far.
Reply With Quote
  #11  
Old 07-11-2011, 11:47 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Haven't logged on here in years and the first thread I look at, I see my name! Wow guys, I feel so warm and fuzzy inside.

Sorry, to bring up a slightly old topic and go off topic (even though it was the newest).

On that note, have tilelayers made any advancements since my adventures with them?
__________________
Do it with a DON!
Reply With Quote
  #12  
Old 07-11-2011, 12:54 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by zokemon View Post
On that note, have tilelayers made any advancements since my adventures with them?
Nope
__________________
Reply With Quote
  #13  
Old 07-12-2011, 08:55 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Crow View Post
Nope
Sad.
__________________
Do it with a DON!
Reply With Quote
  #14  
Old 08-22-2011, 06:16 AM
Hezzy002 Hezzy002 is offline
Registered User
Join Date: Jul 2011
Posts: 247
Hezzy002 is a jewel in the roughHezzy002 is a jewel in the rough
I love how people have to hack things in, and have to discover things on their own (Even though it's running in a ****ing sandbox that Stefan should know everything about) and Graal is actively developed. Pathetic.
Reply With Quote
  #15  
Old 03-22-2012, 05:38 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Bump. This would be INCREDIBLY useful to make levels really come to life. Also being able to draw tilelayers above players would AMAZING.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 06:57 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.