Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Passability indicator (tool for mappers)

Anonymous

Guest

A switch would be very nice. A true or false switch to turn the passability on or off, so u dont have to put the switch and take it off over and over OR u could make it "debug mode only"
 
A (possible) solution to the script hanging on large maps: is there (maybe) a way to apply this script only to what is displayed on screen, much like the way the many Event Anti-Lag scripts work? (FYI: there is actually an extra row of tiles drawn just on the outside of the viewport both to the right and down, I can't verify up and left, but I assume they are probably drawn as well. This allows for smooth scrolling.)
 
The problem is, to cut down the lag, I generate the bitmap when initialized, and add the event tiles after. If I had to generate the full picture each time, it would take bloody long.
 
Oh, I was just testing it out on diferent sized maps, basically auto transfering to each one. I went from a 20x20 to 130x130, except I never made it that far. I think around 80x80 it starts to lag and each map after it lagged even more until it downright took up ALOT of proccessor power or memory, either way, the entire computer slowed down, I'm not sure if it's from the multiple maps, or if it's from drawing large bitmaps...

Anyway, what I'm saying is, this script is ideal for small maps, and testing one map at a time. BTW, the size of the map that it hungup on was 120x120 with alot of detail. when I loaded a 120x120 map with only one thing, it loaded, albeit with a bit of lag, and then when I switched to a 130x130 map with only one thing, it hung up.

EDIT::
I've seen a passability minimap script somewhere, I think back on .net, it was by Squall, I think.... It does the same thing this script does, except it draws it on a minimap in the corner instead of overlaying the actual map. I can't remember if there was lag on large maps or not, but I don't think it hanged... I was wondering if you could probably do something similar to that?
 
Great tool, really useful.
About the lag thing, I think you can generate all the tiles stuff in inititizlize method, but only the visible ones in the update method. So we'll have some lag at inititlizing the map, but less lag while walking around the map. You may add so that the passability is only visible while pressing a key like Ctrl, so the mapper can have a preview of both the map and the passability.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top