![]() |
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:
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. |
Neat suggestions. +1
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
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. x_x 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. :) |
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. |
Quote:
|
Thanks!
Seems to be working so far. :) |
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? |
Quote:
|
Quote:
|
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.
|
Bump. This would be INCREDIBLY useful to make levels really come to life. Also being able to draw tilelayers above players would AMAZING.
|
| All times are GMT +2. The time now is 08:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.