![]() |
Blocking Map Detection
I'm wanting to make some blocking detection for a side scroller idea of mine but since I am not using Graal levels I can't use onwall2 functions and such. My idea to implement it would be to have "blocking" image maps much like the attached images. Basically I would use pixel checks to see if the areas around you are blocking or not on the blocking map but the actual blocking map would be hidden or overlayed by actual graphic images. In this example, black would mean blocking and white would be passable.
This would work fairly well except I would need to check quite a large amount of pixels for very large objects. For this reason I have a feature request to make: PHP Code:
The red dot in the image attached would actually be in the map, it's just to show you where the character might be. In that case he would need to stop upon hitting the blackness below him. This could be useful for adding other things too since more then just 2 pixels could be in any given map. |
...! I really like this idea, that would be quite useful. I can think of at least two other ways I could use this for without mentioning side scrollers ;P
/sign |
This doesn't need explanation on why it should be added,
/sign |
Well, explanations are always helpful! :frown:
|
| All times are GMT +2. The time now is 09:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.