![]() |
level interaction and layers
I was messing around with tilelayers and I was surprised to find you can't check onwall on different tilelayers. This saddens me. So my proposal? Simple, have any and all functions that involve interacting with levels(onwall,onwall2,onwater... anything else I can't think of) expanded to each different tilelayer. Please?
EDIT: oh, and projectiles should also be linked to the layer they're fired on if done with level.tilelayers[x].shoot()... though I don't know how realistic that is. |
The onwall type is based on a few things:
Tilelayers have 2 different types of "blocking" tiles and two different types of "unblocking" ones. Each one has a foreground and a background type. I haven't looked into it much but I'm pretty sure the foreground types will override any background types (be it blocking or not) that are above it. Otherwise, the top layer is the one that take priority in choosing the actual tiletype. Onwall wouldn't work with just one layer because that means you are saying you want to check npcs, players AND a single tilelayer? Kinda funky. |
| All times are GMT +2. The time now is 05:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.